Class ChangeDimensionTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ChangeDimensionTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ChangeDimensionTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_19777_, ResourceKey<Level> p_19778_, ResourceKey<Level> p_19779_)
-
Method Summary
Modifier and TypeMethodDescriptionchangedDimension(ResourceKey<Level> p_147561_, ResourceKey<Level> p_147562_)
changedDimensionFrom(ResourceKey<Level> p_147564_)
changedDimensionTo(ResourceKey<Level> p_19783_)
boolean
matches(ResourceKey<Level> p_19785_, ResourceKey<Level> p_19786_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_19781_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
from
-
to
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_19777_, @Nullable ResourceKey<Level> p_19778_, @Nullable ResourceKey<Level> p_19779_)
-
-
Method Details
-
changedDimension
-
changedDimension
public static ChangeDimensionTrigger.TriggerInstance changedDimension(ResourceKey<Level> p_147561_, ResourceKey<Level> p_147562_) -
changedDimensionTo
public static ChangeDimensionTrigger.TriggerInstance changedDimensionTo(ResourceKey<Level> p_19783_) -
changedDimensionFrom
public static ChangeDimensionTrigger.TriggerInstance changedDimensionFrom(ResourceKey<Level> p_147564_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-