Package net.minecraft.predicate.entity
Class LocationPredicate
java.lang.Object
net.minecraft.predicate.entity.LocationPredicate
public class LocationPredicate extends 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 StructureFeature<?>
feature
private static Logger
field_24732
private FluidPredicate
fluid
private LightPredicate
light
private Boolean
smokey
private NumberRange.FloatRange
x
private NumberRange.FloatRange
y
private NumberRange.FloatRange
z
-
Constructor Summary
Constructors Constructor Description LocationPredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, RegistryKey<Biome> registryKey, StructureFeature<?> feature, RegistryKey<World> dimension, Boolean smokey, LightPredicate light, BlockPredicate block, FluidPredicate fluid)
-
Method Summary
Modifier and Type Method Description static LocationPredicate
biome(RegistryKey<Biome> registryKey)
static LocationPredicate
dimension(RegistryKey<World> dimension)
static LocationPredicate
feature(StructureFeature<?> feature)
static LocationPredicate
fromJson(JsonElement json)
boolean
test(ServerWorld world, double x, double y, double z)
boolean
test(ServerWorld world, float x, float y, float z)
JsonElement
toJson()
-
Field Details
-
field_24732
-
ANY
-
x
-
y
-
z
-
biome
-
feature
-
dimension
-
smokey
-
light
-
block
-
fluid
-
-
Constructor Details
-
LocationPredicate
public LocationPredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, @Nullable RegistryKey<Biome> registryKey, @Nullable StructureFeature<?> feature, @Nullable RegistryKey<World> dimension, @Nullable Boolean smokey, LightPredicate light, BlockPredicate block, FluidPredicate fluid)
-
-
Method Details
-
biome
-
dimension
-
feature
-
test
-
test
-
toJson
-
fromJson
-