Class CompoundIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.CompoundIngredient
Ingredient that matches if any of the child ingredients match
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<Ingredient>
static final com.mojang.serialization.Codec<CompoundIngredient>
private final boolean
private it.unimi.dsi.fastutil.ints.IntList
static final IIngredientSerializer<CompoundIngredient>
private ItemStack[]
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY, VANILLA_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack[]
getItems()
@NotNull it.unimi.dsi.fastutil.ints.IntList
boolean
isEmpty()
boolean
isSimple()
static Ingredient
of
(Ingredient... children) IIngredientSerializer<? extends Ingredient>
boolean
Methods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
fromNetwork, fromValues, of, of, of, of, of
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, invalidate, invalidateAll, isVanilla, markValid, toNetwork, toString
-
Field Details
-
children
-
stacks
-
itemIds
private it.unimi.dsi.fastutil.ints.IntList itemIds -
isSimple
private final boolean isSimple -
CODEC
-
SERIALIZER
-
-
Constructor Details
-
CompoundIngredient
-
-
Method Details
-
of
-
getItems
- Overrides:
getItems
in classIngredient
-
getStackingIds
@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntList getStackingIds()- Overrides:
getStackingIds
in classIngredient
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimple
in classAbstractIngredient
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classIngredient
-
serializer
- Specified by:
serializer
in classAbstractIngredient
-