Class ChangeDimensionTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.ChangeDimensionTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- ChangeDimensionTrigger
public static class ChangeDimensionTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<World>fromprivate RegistryKey<World>to
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231488_1_, RegistryKey<World> p_i231488_2_, RegistryKey<World> p_i231488_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangeDimensionTrigger.InstancechangedDimensionTo(RegistryKey<World> p_233552_0_)booleanmatches(RegistryKey<World> p_233553_1_, RegistryKey<World> p_233553_2_)com.google.gson.JsonObjectserializeToJson(ConditionArraySerializer p_230240_1_)-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
from
@Nullable private final RegistryKey<World> from
-
to
@Nullable private final RegistryKey<World> to
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231488_1_, @Nullable RegistryKey<World> p_i231488_2_, @Nullable RegistryKey<World> p_i231488_3_)
-
-
Method Detail
-
changedDimensionTo
public static ChangeDimensionTrigger.Instance changedDimensionTo(RegistryKey<World> p_233552_0_)
-
matches
public boolean matches(RegistryKey<World> p_233553_1_, RegistryKey<World> p_233553_2_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJsonin interfaceICriterionInstance- Overrides:
serializeToJsonin classCriterionInstance
-
-