public static class EnchantedItemTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
private MinMaxBounds.IntBound |
levels |
Constructor and Description |
---|
Instance(ItemPredicate p_i49731_1_,
MinMaxBounds.IntBound p_i49731_2_) |
Modifier and Type | Method and Description |
---|---|
static EnchantedItemTrigger.Instance |
any() |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ItemStack item,
int levelsIn) |
getId, toString
private final ItemPredicate item
private final MinMaxBounds.IntBound levels
public Instance(ItemPredicate p_i49731_1_, MinMaxBounds.IntBound p_i49731_2_)
public static EnchantedItemTrigger.Instance any()
public boolean test(ItemStack item, int levelsIn)
public com.google.gson.JsonElement serialize()