public static class LocationArrivalCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private LocationPredicate |
location |
Constructor and Description |
---|
Conditions(Identifier id,
LocationPredicate location) |
Modifier and Type | Method and Description |
---|---|
static LocationArrivalCriterion.Conditions |
create(LocationPredicate location) |
static LocationArrivalCriterion.Conditions |
createHeroOfTheVillage() |
static LocationArrivalCriterion.Conditions |
createSleptInBed() |
boolean |
matches(ServerWorld world,
double x,
double y,
double z) |
JsonElement |
toJson() |
getId, toString
private final LocationPredicate location
public Conditions(Identifier id, LocationPredicate location)
public static LocationArrivalCriterion.Conditions create(LocationPredicate location)
public static LocationArrivalCriterion.Conditions createSleptInBed()
public static LocationArrivalCriterion.Conditions createHeroOfTheVillage()
public boolean matches(ServerWorld world, double x, double y, double z)
public JsonElement toJson()