Class LocationPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.LocationPredicate
-
public class LocationPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocationPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static LocationPredicate
ANY
private RegistryKey<Biome>
biome
private BlockPredicate
block
private RegistryKey<World>
dimension
private Structure<?>
feature
private FluidPredicate
fluid
private LightPredicate
light
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.Boolean
smokey
private MinMaxBounds.FloatBound
x
private MinMaxBounds.FloatBound
y
private MinMaxBounds.FloatBound
z
-
Constructor Summary
Constructors Constructor Description LocationPredicate(MinMaxBounds.FloatBound p_i241961_1_, MinMaxBounds.FloatBound p_i241961_2_, MinMaxBounds.FloatBound p_i241961_3_, RegistryKey<Biome> p_i241961_4_, Structure<?> p_i241961_5_, RegistryKey<World> p_i241961_6_, java.lang.Boolean p_i241961_7_, LightPredicate p_i241961_8_, BlockPredicate p_i241961_9_, FluidPredicate p_i241961_10_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocationPredicate
fromJson(com.google.gson.JsonElement p_193454_0_)
static LocationPredicate
inBiome(RegistryKey<Biome> p_242665_0_)
static LocationPredicate
inDimension(RegistryKey<World> p_235308_0_)
static LocationPredicate
inFeature(Structure<?> p_218020_0_)
boolean
matches(ServerWorld p_193452_1_, double p_193452_2_, double p_193452_4_, double p_193452_6_)
boolean
matches(ServerWorld p_193453_1_, float p_193453_2_, float p_193453_3_, float p_193453_4_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
ANY
public static final LocationPredicate ANY
-
x
private final MinMaxBounds.FloatBound x
-
y
private final MinMaxBounds.FloatBound y
-
z
private final MinMaxBounds.FloatBound z
-
biome
@Nullable private final RegistryKey<Biome> biome
-
feature
@Nullable private final Structure<?> feature
-
dimension
@Nullable private final RegistryKey<World> dimension
-
smokey
@Nullable private final java.lang.Boolean smokey
-
light
private final LightPredicate light
-
block
private final BlockPredicate block
-
fluid
private final FluidPredicate fluid
-
-
Constructor Detail
-
LocationPredicate
public LocationPredicate(MinMaxBounds.FloatBound p_i241961_1_, MinMaxBounds.FloatBound p_i241961_2_, MinMaxBounds.FloatBound p_i241961_3_, @Nullable RegistryKey<Biome> p_i241961_4_, @Nullable Structure<?> p_i241961_5_, @Nullable RegistryKey<World> p_i241961_6_, @Nullable java.lang.Boolean p_i241961_7_, LightPredicate p_i241961_8_, BlockPredicate p_i241961_9_, FluidPredicate p_i241961_10_)
-
-
Method Detail
-
inBiome
public static LocationPredicate inBiome(RegistryKey<Biome> p_242665_0_)
-
inDimension
public static LocationPredicate inDimension(RegistryKey<World> p_235308_0_)
-
inFeature
public static LocationPredicate inFeature(Structure<?> p_218020_0_)
-
matches
public boolean matches(ServerWorld p_193452_1_, double p_193452_2_, double p_193452_4_, double p_193452_6_)
-
matches
public boolean matches(ServerWorld p_193453_1_, float p_193453_2_, float p_193453_3_, float p_193453_4_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
fromJson
public static LocationPredicate fromJson(@Nullable com.google.gson.JsonElement p_193454_0_)
-
-