public static class EnchantedItemCriterion.Conditions extends AbstractCriterionConditions
| Modifier and Type | Field and Description |
|---|---|
private ItemPredicate |
item |
private NumberRange.IntRange |
levels |
| Constructor and Description |
|---|
Conditions(EntityPredicate.class_5258 class_5258,
ItemPredicate itemPredicate,
NumberRange.IntRange intRange) |
| Modifier and Type | Method and Description |
|---|---|
static EnchantedItemCriterion.Conditions |
any() |
boolean |
matches(ItemStack stack,
int levels) |
JsonObject |
toJson(class_5267 class_5267) |
getId, method_27790, toStringprivate final ItemPredicate item
private final NumberRange.IntRange levels
public Conditions(EntityPredicate.class_5258 class_5258, ItemPredicate itemPredicate, NumberRange.IntRange intRange)
public static EnchantedItemCriterion.Conditions any()
public boolean matches(ItemStack stack, int levels)
public JsonObject toJson(class_5267 class_5267)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditions