public static class NetherTravelCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private DistancePredicate |
distance |
private LocationPredicate |
enteredPos |
private LocationPredicate |
exitedPos |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
LocationPredicate enteredPos,
LocationPredicate exitedPos,
DistancePredicate distance) |
Modifier and Type | Method and Description |
---|---|
static NetherTravelCriterion.Conditions |
distance(DistancePredicate distance) |
boolean |
matches(ServerWorld world,
Vec3d enteredPos,
double exitedPosX,
double exitedPosY,
double exitedPosZ) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final LocationPredicate enteredPos
private final LocationPredicate exitedPos
private final DistancePredicate distance
public Conditions(EntityPredicate.Extended player, LocationPredicate enteredPos, LocationPredicate exitedPos, DistancePredicate distance)
public static NetherTravelCriterion.Conditions distance(DistancePredicate distance)
public boolean matches(ServerWorld world, Vec3d enteredPos, double exitedPosX, double exitedPosY, double exitedPosZ)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions