Class UsingItemTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<UsingItemTrigger.TriggerInstance>
net.minecraft.advancements.critereon.UsingItemTrigger
- All Implemented Interfaces:
CriterionTrigger<UsingItemTrigger.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_163872_, EntityPredicate.Composite p_163873_, DeserializationContext p_163874_) getId()
void
trigger
(ServerPlayer p_163866_, ItemStack p_163867_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
UsingItemTrigger
public UsingItemTrigger()
-
-
Method Details
-
getId
-
createInstance
public UsingItemTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_163872_, EntityPredicate.Composite p_163873_, DeserializationContext p_163874_) - Specified by:
createInstance
in classSimpleCriterionTrigger<UsingItemTrigger.TriggerInstance>
-
trigger
-