mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-26 06:42:55 +00:00
feat: float
This commit is contained in:
1 parent
0e7c1b4f73
commit
6c80a421fe
18 files changed
+128
-109
No files matched your search
@@ -7,6 +7,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.nbt.NBTTagList;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
import java.util.*;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -14,6 +15,7 @@ import java.util.stream.IntStream;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.stream.StreamSupport;
|
||||
|
||||
@ParametersAreNonnullByDefault
|
||||
public class Recipes {
|
||||
LinkedHashMap<String, List<Recipe>> records = new LinkedHashMap<>();
|
||||
|
||||
@@ -45,7 +47,7 @@ public class Recipes {
|
||||
}
|
||||
|
||||
public void modify(String group, int index, @Nullable Recipe recipe) {
|
||||
if (index == -1) add(group, recipe);
|
||||
if (index == -1 && recipe != null) add(group, recipe);
|
||||
else if (recipe == null) remove(group, index);
|
||||
else set(group, index, recipe);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user