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(LocationPredicate entered,
LocationPredicate exited,
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) |
JsonElement |
toJson() |
getId, toString
private final LocationPredicate enteredPos
private final LocationPredicate exitedPos
private final DistancePredicate distance
public Conditions(LocationPredicate entered, LocationPredicate exited, DistancePredicate distance)
public static NetherTravelCriterion.Conditions distance(DistancePredicate distance)
public boolean matches(ServerWorld world, Vec3d enteredPos, double exitedPosX, double exitedPosY, double exitedPosZ)
public JsonElement toJson()