public class ItemPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ItemPredicate |
ANY |
Constructor and Description |
---|
ItemPredicate() |
ItemPredicate(Item item,
java.lang.Integer data,
MinMaxBounds count,
MinMaxBounds durability,
EnchantmentPredicate[] enchantments,
PotionType potion,
NBTPredicate nbt) |
Modifier and Type | Method and Description |
---|---|
static ItemPredicate |
deserialize(JsonElement element) |
static ItemPredicate[] |
deserializeArray(JsonElement element) |
boolean |
test(ItemStack item) |
public static final ItemPredicate ANY
public ItemPredicate()
public ItemPredicate(Item item, java.lang.Integer data, MinMaxBounds count, MinMaxBounds durability, EnchantmentPredicate[] enchantments, PotionType potion, NBTPredicate nbt)
public boolean test(ItemStack item)
public static ItemPredicate deserialize(JsonElement element)
public static ItemPredicate[] deserializeArray(JsonElement element)