public class NBTIngredient extends Ingredient
Modifier and Type | Class and Description |
---|---|
static class |
NBTIngredient.Serializer |
Ingredient.IItemList, Ingredient.SingleItemList, Ingredient.TagList
Modifier and Type | Field and Description |
---|---|
private ItemStack |
stack |
EMPTY
Modifier | Constructor and Description |
---|---|
protected |
NBTIngredient(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
IIngredientSerializer<? extends Ingredient> |
getSerializer() |
boolean |
isSimple() |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ItemStack input) |
deserialize, deserializeItemList, fromItemListStream, fromItems, fromStacks, fromTag, getMatchingStacks, getValidItemStacksPacked, hasNoMatchingItems, invalidate, invalidateAll, isVanilla, merge, read, write
private final ItemStack stack
protected NBTIngredient(ItemStack stack)
public boolean test(@Nullable ItemStack input)
test
in interface java.util.function.Predicate<ItemStack>
test
in class Ingredient
public boolean isSimple()
isSimple
in class Ingredient
public IIngredientSerializer<? extends Ingredient> getSerializer()
getSerializer
in class Ingredient
public com.google.gson.JsonElement serialize()
serialize
in class Ingredient