Class Ingredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
- Direct Known Subclasses:
CompoundIngredient
,NBTIngredient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic Ingredient
private static Set<Ingredient>
private boolean
private boolean
private ItemStack[]
private it.unimi.dsi.fastutil.ints.IntList
private Ingredient.Value[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
dissolve()
static Ingredient
fromJson(com.google.gson.JsonElement p_43918_)
static Ingredient
fromNetwork(FriendlyByteBuf p_43941_)
static Ingredient
fromValues(Stream<? extends Ingredient.Value> p_43939_)
getItems()
IIngredientSerializer<? extends Ingredient>
it.unimi.dsi.fastutil.ints.IntList
protected void
static void
boolean
isEmpty()
boolean
isSimple()
boolean
static Ingredient
merge(Collection<Ingredient> parts)
static Ingredient
of()
static Ingredient
static Ingredient
static Ingredient
static Ingredient
boolean
com.google.gson.JsonElement
toJson()
void
toNetwork(FriendlyByteBuf p_43924_)
static Ingredient.Value
valueFromJson(com.google.gson.JsonObject p_43920_)
-
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
-
of
-
fromNetwork
-
fromJson
-
valueFromJson
-
merge
-