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 classLocationPredicate.Builder -
Field Summary
Fields Modifier and Type Field Description static LocationPredicateANYprivate RegistryKey<Biome>biomeprivate BlockPredicateblockprivate RegistryKey<World>dimensionprivate StructureFeature<?>featureprivate static Loggerfield_24732private FluidPredicatefluidprivate LightPredicatelightprivate Booleansmokeyprivate NumberRange.FloatRangexprivate NumberRange.FloatRangeyprivate NumberRange.FloatRangez -
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 LocationPredicatebiome(RegistryKey<Biome> registryKey)static LocationPredicatedimension(RegistryKey<World> dimension)static LocationPredicatefeature(StructureFeature<?> feature)static LocationPredicatefromJson(JsonElement json)booleantest(ServerWorld world, double x, double y, double z)booleantest(ServerWorld world, float x, float y, float z)JsonElementtoJson()
-
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
-