Class ChangeDimensionTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<ChangeDimensionTrigger.TriggerInstance>
net.minecraft.advancements.critereon.ChangeDimensionTrigger
- All Implemented Interfaces:
CriterionTrigger<ChangeDimensionTrigger.TriggerInstance>
public class ChangeDimensionTrigger
extends SimpleCriterionTrigger<ChangeDimensionTrigger.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_19762_, ContextAwarePredicate p_286295_, DeserializationContext p_19764_) getId()
void
trigger
(ServerPlayer p_19758_, ResourceKey<Level> p_19759_, ResourceKey<Level> p_19760_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
ChangeDimensionTrigger
public ChangeDimensionTrigger()
-
-
Method Details
-
getId
-
createInstance
public ChangeDimensionTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_19762_, ContextAwarePredicate p_286295_, DeserializationContext p_19764_) - Specified by:
createInstance
in classSimpleCriterionTrigger<ChangeDimensionTrigger.TriggerInstance>
-
trigger
public void trigger(ServerPlayer p_19758_, ResourceKey<Level> p_19759_, ResourceKey<Level> p_19760_)
-