Class CompoundIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.neoforged.neoforge.common.crafting.ChildBasedIngredient
net.neoforged.neoforge.common.crafting.CompoundIngredient
Ingredient that matches if any of the child ingredients match
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundIngredient>static final com.mojang.serialization.Codec<CompoundIngredient>static final com.mojang.serialization.Codec<CompoundIngredient>static final com.mojang.serialization.Codec<CompoundIngredient>Fields inherited from class net.neoforged.neoforge.common.crafting.ChildBasedIngredient
childrenFields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY, LIST_CODEC, LIST_CODEC_NONEMPTY, values, VANILLA_CODEC, VANILLA_CODEC_NONEMPTY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic Ingredientof(Ingredient... children) Creates a compound ingredient from the given list of ingredientsprotected booleantestComplex(@Nullable ItemStack stack) Methods inherited from class net.neoforged.neoforge.common.crafting.ChildBasedIngredient
getChildren, getItems, isSimple, synchronizeWithContents, testMethods inherited from class net.minecraft.world.item.crafting.Ingredient
areStacksEqual, equals, fromJson, fromNetwork, fromValues, getStackingIds, getType, getValues, isEmpty, of, of, of, of, of, toNetwork 
- 
Field Details
- 
CODEC
 - 
DIRECT_CODEC
 - 
CODEC_NONEMPTY
 - 
DIRECT_CODEC_NONEMPTY
 
 - 
 - 
Constructor Details
- 
CompoundIngredient
 
 - 
 - 
Method Details
- 
of
Creates a compound ingredient from the given list of ingredients - 
generateMatchingStacks
- Specified by:
 generateMatchingStacksin classChildBasedIngredient
 - 
testComplex
- Specified by:
 testComplexin classChildBasedIngredient
 
 -