Class PlayerInteractTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<PlayerInteractTrigger.TriggerInstance>
net.minecraft.advancements.critereon.PlayerInteractTrigger
- All Implemented Interfaces:
CriterionTrigger<PlayerInteractTrigger.TriggerInstance>
public class PlayerInteractTrigger
extends SimpleCriterionTrigger<PlayerInteractTrigger.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 TypeMethodDescriptionprotected PlayerInteractTrigger.TriggerInstance
createInstance
(com.google.gson.JsonObject p_286617_, ContextAwarePredicate p_286504_, DeserializationContext p_286558_) getId()
void
trigger
(ServerPlayer p_61495_, ItemStack p_61496_, Entity p_61497_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
PlayerInteractTrigger
public PlayerInteractTrigger()
-
-
Method Details
-
getId
-
createInstance
protected PlayerInteractTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286617_, ContextAwarePredicate p_286504_, DeserializationContext p_286558_) - Specified by:
createInstance
in classSimpleCriterionTrigger<PlayerInteractTrigger.TriggerInstance>
-
trigger
-