public class LocationPredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LocationPredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static LocationPredicate |
ANY |
private Biome |
biome |
private DimensionType |
dimension |
private Structure<?> |
feature |
private LightPredicate |
field_226864_h_ |
private BlockPredicate |
field_226865_i_ |
private FluidPredicate |
field_226866_j_ |
private MinMaxBounds.FloatBound |
x |
private MinMaxBounds.FloatBound |
y |
private MinMaxBounds.FloatBound |
z |
Constructor and Description |
---|
LocationPredicate(MinMaxBounds.FloatBound p_i225755_1_,
MinMaxBounds.FloatBound p_i225755_2_,
MinMaxBounds.FloatBound p_i225755_3_,
Biome p_i225755_4_,
Structure<?> p_i225755_5_,
DimensionType p_i225755_6_,
LightPredicate p_i225755_7_,
BlockPredicate p_i225755_8_,
FluidPredicate p_i225755_9_) |
Modifier and Type | Method and Description |
---|---|
static LocationPredicate |
deserialize(com.google.gson.JsonElement element) |
static LocationPredicate |
forBiome(Biome p_204010_0_) |
static LocationPredicate |
forDimension(DimensionType p_204008_0_) |
static LocationPredicate |
forFeature(Structure<?> p_218020_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerWorld world,
double x,
double y,
double z) |
boolean |
test(ServerWorld world,
float x,
float y,
float z) |
public static final LocationPredicate ANY
private final MinMaxBounds.FloatBound x
private final MinMaxBounds.FloatBound y
private final MinMaxBounds.FloatBound z
@Nullable private final Biome biome
@Nullable private final Structure<?> feature
@Nullable private final DimensionType dimension
private final LightPredicate field_226864_h_
private final BlockPredicate field_226865_i_
private final FluidPredicate field_226866_j_
public LocationPredicate(MinMaxBounds.FloatBound p_i225755_1_, MinMaxBounds.FloatBound p_i225755_2_, MinMaxBounds.FloatBound p_i225755_3_, @Nullable Biome p_i225755_4_, @Nullable Structure<?> p_i225755_5_, @Nullable DimensionType p_i225755_6_, LightPredicate p_i225755_7_, BlockPredicate p_i225755_8_, FluidPredicate p_i225755_9_)
public static LocationPredicate forBiome(Biome p_204010_0_)
public static LocationPredicate forDimension(DimensionType p_204008_0_)
public static LocationPredicate forFeature(Structure<?> p_218020_0_)
public boolean test(ServerWorld world, double x, double y, double z)
public boolean test(ServerWorld world, float x, float y, float z)
public com.google.gson.JsonElement serialize()
public static LocationPredicate deserialize(@Nullable com.google.gson.JsonElement element)