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 FluidPredicate
private final LightPredicate
private static final org.slf4j.Logger
private final Boolean
private final ResourceKey<Structure>
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<Structure> 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
inStructure
(ResourceKey<Structure> p_220590_) 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
-
structure
-
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<Structure> p_207920_, @Nullable ResourceKey<Level> p_207921_, @Nullable Boolean p_207922_, LightPredicate p_207923_, BlockPredicate p_207924_, FluidPredicate p_207925_)
-
-
Method Details
-
inBiome
-
inDimension
-
inStructure
-
atYLocation
-
matches
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-