public static class EnchantedItemCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
item |
private NumberRange.IntRange |
levels |
Constructor and Description |
---|
Conditions(ItemPredicate item,
NumberRange.IntRange levels) |
Modifier and Type | Method and Description |
---|---|
static EnchantedItemCriterion.Conditions |
any() |
boolean |
matches(ItemStack stack,
int levels) |
JsonElement |
toJson() |
getId, toString
private final ItemPredicate item
private final NumberRange.IntRange levels
public Conditions(ItemPredicate item, NumberRange.IntRange levels)
public static EnchantedItemCriterion.Conditions any()
public boolean matches(ItemStack stack, int levels)
public JsonElement toJson()