public static class ChangedDimensionCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private RegistryKey<World> |
from |
private RegistryKey<World> |
to |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
RegistryKey<World> from,
RegistryKey<World> to) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(RegistryKey<World> from,
RegistryKey<World> to) |
static ChangedDimensionCriterion.Conditions |
to(RegistryKey<World> to) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
@Nullable private final RegistryKey<World> from
@Nullable private final RegistryKey<World> to
public Conditions(EntityPredicate.Extended player, @Nullable RegistryKey<World> from, @Nullable RegistryKey<World> to)
public static ChangedDimensionCriterion.Conditions to(RegistryKey<World> to)
public boolean matches(RegistryKey<World> from, RegistryKey<World> to)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions