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