Class ChangedDimensionCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ChangedDimensionCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- ChangedDimensionCriterion
public static class ChangedDimensionCriterion.Conditions extends AbstractCriterionConditions
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<World>fromprivate RegistryKey<World>to -
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, RegistryKey<World> from, RegistryKey<World> to) -
Method Summary
Modifier and Type Method Description booleanmatches(RegistryKey<World> from, RegistryKey<World> to)static ChangedDimensionCriterion.Conditionsto(RegistryKey<World> to)JsonObjecttoJson(AdvancementEntityPredicateSerializer predicateSerializer)Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
from
-
to
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, @Nullable RegistryKey<World> from, @Nullable RegistryKey<World> to)
-
-
Method Details
-
to
-
matches
-
toJson
- Specified by:
toJsonin interfaceCriterionConditions- Overrides:
toJsonin classAbstractCriterionConditions
-