Class IntersectionIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
net.minecraftforge.common.crafting.ingredients.IntersectionIngredient
Ingredient that matches if all 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 final List<Ingredient>static final com.mojang.serialization.Codec<IntersectionIngredient>private ItemStack[]private final booleanprivate it.unimi.dsi.fastutil.ints.IntListstatic final IIngredientSerializer<IntersectionIngredient>Fields inherited from class net.minecraft.world.item.crafting.IngredientCODEC_NONEMPTY, EMPTY, VANILLA_CODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetItems()it.unimi.dsi.fastutil.ints.IntListprotected voidbooleanisEmpty()booleanisSimple()static Ingredientof(Ingredient... ingredients) Gets an intersection ingredientbooleanMethods 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, invalidateAll, isVanilla, markValid, toJson, toNetwork
- 
Field Details- 
children
- 
isSimpleprivate final boolean isSimple
- 
intersectedMatchingStacks
- 
packedMatchingStacksprivate it.unimi.dsi.fastutil.ints.IntList packedMatchingStacks
- 
CODEC
- 
SERIALIZER
 
- 
- 
Constructor Details- 
IntersectionIngredient
 
- 
- 
Method Details- 
ofGets an intersection ingredient- Parameters:
- ingredients- List of ingredients to match
- Returns:
- Ingredient that only matches if all the passed ingredients match
 
- 
test- Specified by:
- testin interface- Predicate<ItemStack>
- Overrides:
- testin class- Ingredient
 
- 
getItems- Overrides:
- getItemsin class- Ingredient
 
- 
isEmptypublic boolean isEmpty()- Overrides:
- isEmptyin class- Ingredient
 
- 
isSimplepublic boolean isSimple()- Specified by:
- isSimplein class- AbstractIngredient
 
- 
invalidateprotected void invalidate()- Overrides:
- invalidatein class- Ingredient
 
- 
getStackingIdspublic it.unimi.dsi.fastutil.ints.IntList getStackingIds()- Overrides:
- getStackingIdsin class- Ingredient
 
- 
serializer- Specified by:
- serializerin class- AbstractIngredient
 
 
-