Class NBTIngredient
- java.lang.Object
-
- net.minecraft.item.crafting.Ingredient
-
- net.minecraftforge.common.crafting.NBTIngredient
-
- All Implemented Interfaces:
java.util.function.Predicate<ItemStack>
public class NBTIngredient extends Ingredient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NBTIngredient.Serializer
-
Nested classes/interfaces inherited from class net.minecraft.item.crafting.Ingredient
Ingredient.IItemList, Ingredient.SingleItemList, Ingredient.TagList
-
-
Field Summary
Fields Modifier and Type Field Description private ItemStack
stack
-
Fields inherited from class net.minecraft.item.crafting.Ingredient
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NBTIngredient(ItemStack stack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IIngredientSerializer<? extends Ingredient>
getSerializer()
boolean
isSimple()
boolean
test(ItemStack input)
com.google.gson.JsonElement
toJson()
-
Methods inherited from class net.minecraft.item.crafting.Ingredient
fromJson, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, merge, of, of, of, of, toNetwork, valueFromJson
-
-
-
-
Field Detail
-
stack
private final ItemStack stack
-
-
Constructor Detail
-
NBTIngredient
protected NBTIngredient(ItemStack stack)
-
-
Method Detail
-
test
public boolean test(@Nullable ItemStack input)
- Specified by:
test
in interfacejava.util.function.Predicate<ItemStack>
- Overrides:
test
in classIngredient
-
isSimple
public boolean isSimple()
- Overrides:
isSimple
in classIngredient
-
getSerializer
public IIngredientSerializer<? extends Ingredient> getSerializer()
- Overrides:
getSerializer
in classIngredient
-
toJson
public com.google.gson.JsonElement toJson()
- Overrides:
toJson
in classIngredient
-
-