Class ItemDurabilityTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<ItemDurabilityTrigger.TriggerInstance>
net.minecraft.advancements.critereon.ItemDurabilityTrigger
- All Implemented Interfaces:
CriterionTrigger<ItemDurabilityTrigger.TriggerInstance>
public class ItemDurabilityTrigger
extends SimpleCriterionTrigger<ItemDurabilityTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(com.google.gson.JsonObject p_43678_, EntityPredicate.Composite p_43679_, DeserializationContext p_43680_)
getId()
void
trigger(ServerPlayer p_43670_, ItemStack p_43671_, int p_43672_)
Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
ItemDurabilityTrigger
public ItemDurabilityTrigger()
-
-
Method Details
-
getId
-
createInstance
public ItemDurabilityTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_43678_, EntityPredicate.Composite p_43679_, DeserializationContext p_43680_)- Specified by:
createInstance
in classSimpleCriterionTrigger<ItemDurabilityTrigger.TriggerInstance>
-
trigger
-