Class NBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.NBTIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient
Ingredient.ItemValue, Ingredient.TagValue, Ingredient.Value
-
Field Summary
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIIngredientSerializer<? extends Ingredient>
boolean
isSimple()
boolean
com.google.gson.JsonElement
toJson()
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
fromJson, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, merge, of, of, of, of, of, toNetwork, valueFromJson
-
Field Details
-
stack
-
-
Constructor Details
-
NBTIngredient
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Overrides:
test
in classIngredient
-
isSimple
public boolean isSimple()- Overrides:
isSimple
in classIngredient
-
getSerializer
- Overrides:
getSerializer
in classIngredient
-
toJson
public com.google.gson.JsonElement toJson()- Overrides:
toJson
in classIngredient
-