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
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
private final ResourceKey<Level>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ContextAwarePredicate p_286423_, ResourceKey<Level> p_286585_, ResourceKey<Level> p_286666_) -
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(ContextAwarePredicate p_286423_, @Nullable ResourceKey<Level> p_286585_, @Nullable ResourceKey<Level> p_286666_)
-
-
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
-