public class ItemPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ItemPredicate |
ANY |
private MinMaxBounds |
count |
private java.lang.Integer |
data |
private MinMaxBounds |
durability |
private EnchantmentPredicate[] |
enchantments |
private Item |
item |
private NBTPredicate |
nbt |
private PotionType |
potion |
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(com.google.gson.JsonElement element) |
static ItemPredicate[] |
deserializeArray(com.google.gson.JsonElement element) |
boolean |
test(ItemStack item) |
public static final ItemPredicate ANY
private final Item item
private final java.lang.Integer data
private final MinMaxBounds count
private final MinMaxBounds durability
private final EnchantmentPredicate[] enchantments
private final PotionType potion
private final NBTPredicate nbt
public ItemPredicate()
public ItemPredicate(@Nullable Item item, @Nullable java.lang.Integer data, MinMaxBounds count, MinMaxBounds durability, EnchantmentPredicate[] enchantments, @Nullable PotionType potion, NBTPredicate nbt)
public boolean test(ItemStack item)
public static ItemPredicate deserialize(@Nullable com.google.gson.JsonElement element)
public static ItemPredicate[] deserializeArray(@Nullable com.google.gson.JsonElement element)