Class ItemDurabilityTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemDurabilityTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
ItemDurabilityTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinMaxBounds.Ints
private final MinMaxBounds.Ints
private final Optional<ItemPredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_298655_, Optional<ItemPredicate> p_298552_, MinMaxBounds.Ints p_286431_, MinMaxBounds.Ints p_286460_) -
Method Summary
Modifier and TypeMethodDescriptionchangedDurability
(Optional<ContextAwarePredicate> p_299196_, Optional<ItemPredicate> p_299039_, MinMaxBounds.Ints p_286730_) changedDurability
(Optional<ItemPredicate> p_299020_, MinMaxBounds.Ints p_151288_) boolean
com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
item
-
durability
-
delta
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_298655_, Optional<ItemPredicate> p_298552_, MinMaxBounds.Ints p_286431_, MinMaxBounds.Ints p_286460_)
-
-
Method Details
-
changedDurability
public static Criterion<ItemDurabilityTrigger.TriggerInstance> changedDurability(Optional<ItemPredicate> p_299020_, MinMaxBounds.Ints p_151288_) -
changedDurability
public static Criterion<ItemDurabilityTrigger.TriggerInstance> changedDurability(Optional<ContextAwarePredicate> p_299196_, Optional<ItemPredicate> p_299039_, MinMaxBounds.Ints p_286730_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-