Class CompoundIngredient
java.lang.Object
net.minecraft.item.crafting.Ingredient
net.minecraftforge.common.crafting.CompoundIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.crafting.Ingredient
Ingredient.IItemList, Ingredient.SingleItemList, Ingredient.TagList
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<Ingredient>
private final boolean
private it.unimi.dsi.fastutil.ints.IntList
private ItemStack[]
Fields inherited from class net.minecraft.item.crafting.Ingredient
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()
IIngredientSerializer<? extends Ingredient>
it.unimi.dsi.fastutil.ints.IntList
protected void
boolean
isEmpty()
boolean
isSimple()
boolean
com.google.gson.JsonElement
toJson()
Methods inherited from class net.minecraft.item.crafting.Ingredient
fromJson, fromNetwork, fromValues, invalidateAll, isVanilla, merge, of, of, of, of, toNetwork, valueFromJson
-
Field Details
-
children
-
stacks
-
itemIds
private it.unimi.dsi.fastutil.ints.IntList itemIds -
isSimple
private final boolean isSimple
-
-
Constructor Details
-
CompoundIngredient
-
-
Method Details
-
getItems
- Overrides:
getItems
in classIngredient
-
getStackingIds
@Nonnull public it.unimi.dsi.fastutil.ints.IntList getStackingIds()- Overrides:
getStackingIds
in classIngredient
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
invalidate
protected void invalidate()- Overrides:
invalidate
in classIngredient
-
isSimple
public boolean isSimple()- Overrides:
isSimple
in classIngredient
-
getSerializer
- Overrides:
getSerializer
in classIngredient
-
getChildren
-
toJson
public com.google.gson.JsonElement toJson()- Overrides:
toJson
in classIngredient
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classIngredient
-