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(com.google.gson.JsonElement element) |
static ItemPredicate[] |
deserializeArray(com.google.gson.JsonElement element) |
boolean |
test(ItemStack item) |
public static final ItemPredicate ANY
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)