Class ItemDurabilityTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemDurabilityTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ItemDurabilityTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinMaxBounds.Ints
private final MinMaxBounds.Ints
private final ItemPredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(EntityPredicate.Composite p_43690_, ItemPredicate p_43691_, MinMaxBounds.Ints p_43692_, MinMaxBounds.Ints p_43693_) -
Method Summary
Modifier and TypeMethodDescriptionchangedDurability
(EntityPredicate.Composite p_43695_, ItemPredicate p_43696_, MinMaxBounds.Ints p_43697_) changedDurability
(ItemPredicate p_151287_, MinMaxBounds.Ints p_151288_) boolean
com.google.gson.JsonObject
serializeToJson
(SerializationContext p_43702_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
item
-
durability
-
delta
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_43690_, ItemPredicate p_43691_, MinMaxBounds.Ints p_43692_, MinMaxBounds.Ints p_43693_)
-
-
Method Details
-
changedDurability
public static ItemDurabilityTrigger.TriggerInstance changedDurability(ItemPredicate p_151287_, MinMaxBounds.Ints p_151288_) -
changedDurability
public static ItemDurabilityTrigger.TriggerInstance changedDurability(EntityPredicate.Composite p_43695_, ItemPredicate p_43696_, MinMaxBounds.Ints p_43697_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-