Class LocationPredicate
java.lang.Object
net.minecraft.advancements.critereon.LocationPredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic LocationPredicate
private ResourceKey<Biome>
private BlockPredicate
private ResourceKey<Level>
private StructureFeature<?>
private FluidPredicate
private LightPredicate
private static org.apache.logging.log4j.Logger
private Boolean
private MinMaxBounds.Doubles
private MinMaxBounds.Doubles
private MinMaxBounds.Doubles
-
Constructor Summary
ConstructorDescriptionLocationPredicate(MinMaxBounds.Doubles p_52606_, MinMaxBounds.Doubles p_52607_, MinMaxBounds.Doubles p_52608_, ResourceKey<Biome> p_52609_, StructureFeature<?> p_52610_, ResourceKey<Level> p_52611_, Boolean p_52612_, LightPredicate p_52613_, BlockPredicate p_52614_, FluidPredicate p_52615_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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(StructureFeature<?> p_52628_)
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.apache.logging.log4j.Logger LOGGER -
ANY
-
x
-
y
-
z
-
biome
-
feature
-
dimension
-
smokey
-
light
-
block
-
fluid
-
-
Constructor Details
-
LocationPredicate
public LocationPredicate(MinMaxBounds.Doubles p_52606_, MinMaxBounds.Doubles p_52607_, MinMaxBounds.Doubles p_52608_, @Nullable ResourceKey<Biome> p_52609_, @Nullable StructureFeature<?> p_52610_, @Nullable ResourceKey<Level> p_52611_, @Nullable Boolean p_52612_, LightPredicate p_52613_, BlockPredicate p_52614_, FluidPredicate p_52615_)
-
-
Method Details
-
inBiome
-
inDimension
-
inFeature
-
matches
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-