public class LocationPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LocationPredicate |
ANY |
(package private) Biome |
biome |
private DimensionType |
dimension |
private java.lang.String |
feature |
private MinMaxBounds |
x |
private MinMaxBounds |
y |
private MinMaxBounds |
z |
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
private final MinMaxBounds x
private final MinMaxBounds y
private final MinMaxBounds z
@Nullable final Biome biome
@Nullable private final java.lang.String feature
@Nullable private final DimensionType dimension
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)