Class LocationPredicate
java.lang.Object
net.minecraft.advancements.criterion.LocationPredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LocationPredicate
private final RegistryKey<Biome>
private final BlockPredicate
private final RegistryKey<World>
private final Structure<?>
private final FluidPredicate
private final LightPredicate
private static final org.apache.logging.log4j.Logger
private final Boolean
private final MinMaxBounds.FloatBound
private final MinMaxBounds.FloatBound
private final MinMaxBounds.FloatBound
-
Constructor Summary
ConstructorDescriptionLocationPredicate
(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_, Boolean p_i241961_7_, LightPredicate p_i241961_8_, BlockPredicate p_i241961_9_, FluidPredicate p_i241961_10_) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
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
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ANY
-
x
-
y
-
z
-
biome
-
feature
-
dimension
-
smokey
-
light
-
block
-
fluid
-
-
Constructor Details
-
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 Boolean p_i241961_7_, LightPredicate p_i241961_8_, BlockPredicate p_i241961_9_, FluidPredicate p_i241961_10_)
-
-
Method Details
-
inBiome
-
inDimension
-
inFeature
-
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
-