public static class ItemDurabilityTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private MinMaxBounds.IntBound |
delta |
private MinMaxBounds.IntBound |
durability |
private ItemPredicate |
item |
Constructor and Description |
---|
Instance(ItemPredicate p_i49703_1_,
MinMaxBounds.IntBound p_i49703_2_,
MinMaxBounds.IntBound p_i49703_3_) |
Modifier and Type | Method and Description |
---|---|
static ItemDurabilityTrigger.Instance |
forItemDamage(ItemPredicate p_211182_0_,
MinMaxBounds.IntBound p_211182_1_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ItemStack item,
int p_193197_2_) |
getId, toString
private final ItemPredicate item
private final MinMaxBounds.IntBound durability
private final MinMaxBounds.IntBound delta
public Instance(ItemPredicate p_i49703_1_, MinMaxBounds.IntBound p_i49703_2_, MinMaxBounds.IntBound p_i49703_3_)
public static ItemDurabilityTrigger.Instance forItemDamage(ItemPredicate p_211182_0_, MinMaxBounds.IntBound p_211182_1_)
public boolean test(ItemStack item, int p_193197_2_)
public com.google.gson.JsonElement serialize()