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 SummaryNested classes/interfaces inherited from class net.minecraft.world.item.crafting.IngredientIngredient.ItemValue, Ingredient.TagValue, Ingredient.Value
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate List<Ingredient>static final com.mojang.serialization.Codec<CompoundIngredient>private final booleanprivate it.unimi.dsi.fastutil.ints.IntListstatic final IIngredientSerializer<CompoundIngredient>private ItemStack[]Fields inherited from class net.minecraft.world.item.crafting.IngredientCODEC_NONEMPTY, EMPTY, VANILLA_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@NotNull ItemStack[]getItems()@NotNull it.unimi.dsi.fastutil.ints.IntListbooleanisEmpty()booleanisSimple()static Ingredientof(Ingredient... children) IIngredientSerializer<? extends Ingredient>booleanMethods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredientfromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.IngredientcheckInvalidation, equals, invalidate, invalidateAll, isVanilla, markValid, toJson, toNetwork
- 
Field Details- 
children
- 
stacks
- 
itemIdsprivate it.unimi.dsi.fastutil.ints.IntList itemIds
- 
isSimpleprivate final boolean isSimple
- 
CODEC
- 
SERIALIZER
 
- 
- 
Constructor Details- 
CompoundIngredient
 
- 
- 
Method Details- 
of
- 
getItems- Overrides:
- getItemsin class- Ingredient
 
- 
getStackingIds@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntList getStackingIds()- Overrides:
- getStackingIdsin class- Ingredient
 
- 
test- Specified by:
- testin interface- Predicate<ItemStack>
- Overrides:
- testin class- Ingredient
 
- 
isSimplepublic boolean isSimple()- Specified by:
- isSimplein class- AbstractIngredient
 
- 
isEmptypublic boolean isEmpty()- Overrides:
- isEmptyin class- Ingredient
 
- 
serializer- Specified by:
- serializerin class- AbstractIngredient
 
 
-