Package net.minecraft.item.crafting
Class Ingredient
java.lang.Object
net.minecraft.item.crafting.Ingredient
- Direct Known Subclasses:
CompoundIngredient,NBTIngredient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Ingredientprivate static final Set<Ingredient>private final booleanprivate final booleanprivate ItemStack[]private it.unimi.dsi.fastutil.ints.IntListprivate final Ingredient.IItemList[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIngredient(Stream<? extends Ingredient.IItemList> p_i49381_1_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddissolve()static IngredientfromJson(com.google.gson.JsonElement p_199802_0_) static IngredientfromNetwork(PacketBuffer p_199566_0_) static IngredientfromValues(Stream<? extends Ingredient.IItemList> p_209357_0_) getItems()IIngredientSerializer<? extends Ingredient>it.unimi.dsi.fastutil.ints.IntListprotected voidstatic voidbooleanisEmpty()booleanisSimple()final booleanstatic Ingredientmerge(Collection<Ingredient> parts) static Ingredientstatic Ingredientstatic Ingredientstatic Ingredientof(IItemProvider... p_199804_0_) booleancom.google.gson.JsonElementtoJson()final voidtoNetwork(PacketBuffer p_199564_1_) static Ingredient.IItemListvalueFromJson(com.google.gson.JsonObject p_199803_0_)
-
Field Details
-
INSTANCES
-
EMPTY
-
values
-
itemStacks
-
stackingIds
private it.unimi.dsi.fastutil.ints.IntList stackingIds -
isSimple
private final boolean isSimple -
isVanilla
private final boolean isVanilla
-
-
Constructor Details
-
Ingredient
-
-
Method Details
-
invalidateAll
public static void invalidateAll() -
getItems
-
dissolve
private void dissolve() -
test
-
getStackingIds
public it.unimi.dsi.fastutil.ints.IntList getStackingIds() -
toNetwork
-
toJson
public com.google.gson.JsonElement toJson() -
isEmpty
public boolean isEmpty() -
invalidate
protected void invalidate() -
isSimple
public boolean isSimple() -
isVanilla
public final boolean isVanilla() -
getSerializer
-
fromValues
-
of
-
of
-
of
-
of
-
fromNetwork
-
fromJson
-
valueFromJson
-
merge
-