Class DistanceTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<DistanceTrigger.TriggerInstance>
net.minecraft.advancements.critereon.DistanceTrigger
- All Implemented Interfaces:
CriterionTrigger<DistanceTrigger.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 TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_286885_, Optional<ContextAwarePredicate> p_297431_, DeserializationContext p_286678_) void
trigger
(ServerPlayer p_186166_, Vec3 p_186167_) 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
-
DistanceTrigger
public DistanceTrigger()
-
-
Method Details
-
createInstance
public DistanceTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286885_, Optional<ContextAwarePredicate> p_297431_, DeserializationContext p_286678_) - Specified by:
createInstance
in classSimpleCriterionTrigger<DistanceTrigger.TriggerInstance>
-
trigger
-