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
FieldsModifier 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.Ingredient
CODEC_NONEMPTY, EMPTY, VANILLA_CODEC - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.AbstractIngredient
fromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, invalidate, invalidateAll, isVanilla, markValid, toJson, toNetwork 
- 
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:
 getItemsin classIngredient
 - 
getStackingIds
@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntList getStackingIds()- Overrides:
 getStackingIdsin classIngredient
 - 
test
- Specified by:
 testin interfacePredicate<ItemStack>- Overrides:
 testin classIngredient
 - 
isSimple
public boolean isSimple()- Specified by:
 isSimplein classAbstractIngredient
 - 
isEmpty
public boolean isEmpty()- Overrides:
 isEmptyin classIngredient
 - 
serializer
- Specified by:
 serializerin classAbstractIngredient
 
 -