Class Ingredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
- Direct Known Subclasses:
AbstractIngredient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Ingredientprivate static final AtomicIntegerprivate intprivate final booleanprivate ItemStack[]private it.unimi.dsi.fastutil.ints.IntListprivate final Ingredient.Value[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanprivate voiddissolve()static IngredientfromJson(com.google.gson.JsonElement p_43918_) static IngredientfromNetwork(FriendlyByteBuf p_43941_) static IngredientfromValues(Stream<? extends Ingredient.Value> p_43939_) getItems()IIngredientSerializer<? extends Ingredient>it.unimi.dsi.fastutil.ints.IntListprotected voidstatic voidbooleanisEmpty()booleanisSimple()final booleanprotected final voidstatic Ingredientmerge(Collection<Ingredient> parts) static Ingredientof()static Ingredientstatic Ingredientstatic Ingredientstatic Ingredientbooleancom.google.gson.JsonElementtoJson()final voidtoNetwork(FriendlyByteBuf p_43924_) static Ingredient.ValuevalueFromJson(com.google.gson.JsonObject p_43920_)
-
Field Details
-
INVALIDATION_COUNTER
-
EMPTY
-
values
-
itemStacks
-
stackingIds
@Nullable private it.unimi.dsi.fastutil.ints.IntList stackingIds -
invalidationCounter
private int invalidationCounter -
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() -
checkInvalidation
public final boolean checkInvalidation() -
markValid
protected final void markValid() -
invalidate
protected void invalidate() -
isSimple
public boolean isSimple() -
isVanilla
public final boolean isVanilla() -
getSerializer
-
fromValues
-
of
-
of
-
of
-
of
-
of
-
fromNetwork
-
fromJson
-
valueFromJson
-
merge
-