Class ChangeDimensionTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ChangeDimensionTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
ChangeDimensionTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceKey<Level>
private final ResourceKey<Level>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299200_, ResourceKey<Level> p_286585_, ResourceKey<Level> p_286666_) -
Method Summary
Modifier and TypeMethodDescriptionchangedDimension
(ResourceKey<Level> p_301026_, ResourceKey<Level> p_301124_) changedDimensionFrom
(ResourceKey<Level> p_147564_) changedDimensionTo
(ResourceKey<Level> p_19783_) boolean
matches
(ResourceKey<Level> p_19785_, ResourceKey<Level> p_19786_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
from
-
to
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299200_, @Nullable ResourceKey<Level> p_286585_, @Nullable ResourceKey<Level> p_286666_)
-
-
Method Details
-
changedDimension
-
changedDimension
public static Criterion<ChangeDimensionTrigger.TriggerInstance> changedDimension(ResourceKey<Level> p_301026_, ResourceKey<Level> p_301124_) -
changedDimensionTo
public static Criterion<ChangeDimensionTrigger.TriggerInstance> changedDimensionTo(ResourceKey<Level> p_19783_) -
changedDimensionFrom
public static Criterion<ChangeDimensionTrigger.TriggerInstance> changedDimensionFrom(ResourceKey<Level> p_147564_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-