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 class net.minecraft.advancements.critereon.SimpleCriterionTrigger
SimpleCriterionTrigger.SimpleInstance
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PlayerInteractTrigger.TriggerInstance
createInstance
(com.google.gson.JsonObject p_286758_, Optional<ContextAwarePredicate> p_299829_, DeserializationContext p_286859_) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.advancements.CriterionTrigger
createCriterion
-
Constructor Details
-
PlayerInteractTrigger
public PlayerInteractTrigger()
-
-
Method Details
-
createInstance
protected PlayerInteractTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286758_, Optional<ContextAwarePredicate> p_299829_, DeserializationContext p_286859_) - Specified by:
createInstance
in classSimpleCriterionTrigger<PlayerInteractTrigger.TriggerInstance>
-
trigger
-