Class LocationPredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.LocationPredicate.Builder
-
- Enclosing class:
- LocationPredicate
public static class LocationPredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<Biome>
biome
private BlockPredicate
block
private RegistryKey<World>
dimension
private Structure<?>
feature
private FluidPredicate
fluid
private LightPredicate
light
private java.lang.Boolean
smokey
private MinMaxBounds.FloatBound
x
private MinMaxBounds.FloatBound
y
private MinMaxBounds.FloatBound
z
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationPredicate
build()
static LocationPredicate.Builder
location()
LocationPredicate.Builder
setBiome(RegistryKey<Biome> p_242666_1_)
LocationPredicate.Builder
setBlock(BlockPredicate p_235312_1_)
LocationPredicate.Builder
setSmokey(java.lang.Boolean p_235313_1_)
-
-
-
Field Detail
-
x
private MinMaxBounds.FloatBound x
-
y
private MinMaxBounds.FloatBound y
-
z
private MinMaxBounds.FloatBound z
-
biome
@Nullable private RegistryKey<Biome> biome
-
feature
@Nullable private Structure<?> feature
-
dimension
@Nullable private RegistryKey<World> dimension
-
smokey
@Nullable private java.lang.Boolean smokey
-
light
private LightPredicate light
-
block
private BlockPredicate block
-
fluid
private FluidPredicate fluid
-
-
Method Detail
-
location
public static LocationPredicate.Builder location()
-
setBiome
public LocationPredicate.Builder setBiome(@Nullable RegistryKey<Biome> p_242666_1_)
-
setBlock
public LocationPredicate.Builder setBlock(BlockPredicate p_235312_1_)
-
setSmokey
public LocationPredicate.Builder setSmokey(java.lang.Boolean p_235313_1_)
-
build
public LocationPredicate build()
-
-