Class LocationPredicate
java.lang.Object
net.minecraft.advancements.critereon.LocationPredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LocationPredicate
private final ResourceKey<Biome>
private final BlockPredicate
private final ResourceKey<Level>
private final ResourceKey<ConfiguredStructureFeature<?,
?>> private final FluidPredicate
private final LightPredicate
private static final org.slf4j.Logger
private final Boolean
private final MinMaxBounds.Doubles
private final MinMaxBounds.Doubles
private final MinMaxBounds.Doubles
-
Constructor Summary
ConstructorDescriptionLocationPredicate
(MinMaxBounds.Doubles p_207916_, MinMaxBounds.Doubles p_207917_, MinMaxBounds.Doubles p_207918_, ResourceKey<Biome> p_207919_, ResourceKey<ConfiguredStructureFeature<?, ?>> p_207920_, ResourceKey<Level> p_207921_, Boolean p_207922_, LightPredicate p_207923_, BlockPredicate p_207924_, FluidPredicate p_207925_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LocationPredicate
atYLocation
(MinMaxBounds.Doubles p_187443_) static LocationPredicate
fromJson
(com.google.gson.JsonElement p_52630_) static LocationPredicate
inBiome
(ResourceKey<Biome> p_52635_) static LocationPredicate
inDimension
(ResourceKey<Level> p_52639_) static LocationPredicate
inFeature
(ResourceKey<ConfiguredStructureFeature<?, ?>> p_207929_) boolean
matches
(ServerLevel p_52618_, double p_52619_, double p_52620_, double p_52621_) com.google.gson.JsonElement
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ANY
-
x
-
y
-
z
-
biome
-
feature
-
dimension
-
smokey
-
light
-
block
-
fluid
-
-
Constructor Details
-
LocationPredicate
public LocationPredicate(MinMaxBounds.Doubles p_207916_, MinMaxBounds.Doubles p_207917_, MinMaxBounds.Doubles p_207918_, @Nullable ResourceKey<Biome> p_207919_, @Nullable ResourceKey<ConfiguredStructureFeature<?, ?>> p_207920_, @Nullable ResourceKey<Level> p_207921_, @Nullable Boolean p_207922_, LightPredicate p_207923_, BlockPredicate p_207924_, FluidPredicate p_207925_)
-
-
Method Details
-
inBiome
-
inDimension
-
inFeature
-
atYLocation
-
matches
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-