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_300271_, Optional<ItemPredicate> p_297485_, MinMaxBounds.Ints p_286431_, MinMaxBounds.Ints p_286460_) -
Method Summary
Modifier and TypeMethodDescriptionchangedDurability
(Optional<ContextAwarePredicate> p_299530_, Optional<ItemPredicate> p_300893_, MinMaxBounds.Ints p_286730_) changedDurability
(Optional<ItemPredicate> p_300870_, 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_300271_, Optional<ItemPredicate> p_297485_, MinMaxBounds.Ints p_286431_, MinMaxBounds.Ints p_286460_)
-
-
Method Details
-
changedDurability
public static Criterion<ItemDurabilityTrigger.TriggerInstance> changedDurability(Optional<ItemPredicate> p_300870_, MinMaxBounds.Ints p_151288_) -
changedDurability
public static Criterion<ItemDurabilityTrigger.TriggerInstance> changedDurability(Optional<ContextAwarePredicate> p_299530_, Optional<ItemPredicate> p_300893_, MinMaxBounds.Ints p_286730_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-