public static class LocationPredicate.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private RegistryKey<Biome> |
biome |
private BlockPredicate |
block |
private RegistryKey<World> |
dimension |
private StructureFeature<?> |
feature |
private FluidPredicate |
fluid |
private LightPredicate |
light |
private Boolean |
smokey |
private NumberRange.FloatRange |
x |
private NumberRange.FloatRange |
y |
private NumberRange.FloatRange |
z |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LocationPredicate.Builder |
biome(RegistryKey<Biome> registryKey) |
LocationPredicate.Builder |
block(BlockPredicate block) |
LocationPredicate |
build() |
static LocationPredicate.Builder |
create() |
LocationPredicate.Builder |
smokey(Boolean smokey) |
private NumberRange.FloatRange x
private NumberRange.FloatRange y
private NumberRange.FloatRange z
@Nullable private RegistryKey<Biome> biome
@Nullable private StructureFeature<?> feature
@Nullable private RegistryKey<World> dimension
private LightPredicate light
private BlockPredicate block
private FluidPredicate fluid
public static LocationPredicate.Builder create()
public LocationPredicate.Builder biome(@Nullable RegistryKey<Biome> registryKey)
public LocationPredicate.Builder block(BlockPredicate block)
public LocationPredicate.Builder smokey(Boolean smokey)
public LocationPredicate build()