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, writeprivate final ItemStack stack
protected NBTIngredient(ItemStack stack)
public boolean test(@Nullable
ItemStack input)
test in interface java.util.function.Predicate<ItemStack>test in class Ingredientpublic boolean isSimple()
isSimple in class Ingredientpublic IIngredientSerializer<? extends Ingredient> getSerializer()
getSerializer in class Ingredientpublic com.google.gson.JsonElement serialize()
serialize in class Ingredient