public class LocationPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LocationPredicate |
ANY |
Constructor and Description |
---|
LocationPredicate(MinMaxBounds x,
MinMaxBounds y,
MinMaxBounds z,
Biome biome,
java.lang.String feature,
DimensionType dimension) |
Modifier and Type | Method and Description |
---|---|
static LocationPredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
test(WorldServer world,
double x,
double y,
double z) |
boolean |
test(WorldServer world,
float x,
float y,
float z) |
public static LocationPredicate ANY
public LocationPredicate(MinMaxBounds x, MinMaxBounds y, MinMaxBounds z, @Nullable Biome biome, @Nullable java.lang.String feature, @Nullable DimensionType dimension)
public boolean test(WorldServer world, double x, double y, double z)
public boolean test(WorldServer world, float x, float y, float z)
public static LocationPredicate deserialize(@Nullable com.google.gson.JsonElement element)