Class Ingredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
- Direct Known Subclasses:
StrictNBTIngredient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Ingredient>
static final com.mojang.serialization.Codec<Ingredient>
static final Ingredient
private static final AtomicInteger
private int
private final boolean
private ItemStack[]
private it.unimi.dsi.fastutil.ints.IntList
private final Ingredient.Value[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
Ingredient
(Stream<? extends Ingredient.Value> p_43907_) private
Ingredient
(Ingredient.Value[] p_301101_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
private static com.mojang.serialization.Codec<Ingredient>
codec
(boolean p_298496_) boolean
static Ingredient
fromNetwork
(FriendlyByteBuf p_43941_) static Ingredient
fromValues
(Stream<? extends Ingredient.Value> p_43939_) getItems()
it.unimi.dsi.fastutil.ints.IntList
protected void
static void
boolean
isEmpty()
boolean
isSimple()
final boolean
protected final void
static Ingredient
merge
(Collection<Ingredient> parts) static Ingredient
of()
static Ingredient
static Ingredient
static Ingredient
static Ingredient
boolean
com.google.gson.JsonElement
toJson
(boolean p_299391_) final void
toNetwork
(FriendlyByteBuf p_43924_)
-
Field Details
-
INVALIDATION_COUNTER
-
EMPTY
-
values
-
itemStacks
-
stackingIds
@Nullable private it.unimi.dsi.fastutil.ints.IntList stackingIds -
CODEC
-
CODEC_NONEMPTY
-
invalidationCounter
private int invalidationCounter -
isVanilla
private final boolean isVanilla
-
-
Constructor Details
-
Ingredient
-
Ingredient
-
-
Method Details
-
invalidateAll
public static void invalidateAll() -
getItems
-
test
-
getStackingIds
public it.unimi.dsi.fastutil.ints.IntList getStackingIds() -
toNetwork
-
toJson
public com.google.gson.JsonElement toJson(boolean p_299391_) -
isEmpty
public boolean isEmpty() -
equals
-
checkInvalidation
public final boolean checkInvalidation() -
markValid
protected final void markValid() -
invalidate
protected void invalidate() -
isSimple
public boolean isSimple() -
isVanilla
public final boolean isVanilla() -
fromValues
-
of
-
of
-
of
-
of
-
of
-
fromNetwork
-
codec
-
merge
-