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