public static interface SeaFloor.Builder extends ResettableBuilder<SeaFloor,SeaFloor.Builder>
SeaFloor populators.| Modifier and Type | Method and Description |
|---|---|
SeaFloor.Builder |
block(BlockState block)
Sets the
BlockState to place down. |
SeaFloor |
build()
Builds a new instance of a
SeaFloor populator with the
settings set within the builder. |
default SeaFloor.Builder |
depth(int depth)
Sets the depth of the sea floor cover to generate.
|
SeaFloor.Builder |
depth(VariableAmount depth)
Sets the depth of the sea floor cover to generate.
|
default SeaFloor.Builder |
perChunk(int count)
Sets the number of discs to attempt to spawn per chunk, must be
greater than zero.
|
SeaFloor.Builder |
perChunk(VariableAmount count)
Sets the number of discs to attempt to spawn per chunk, must be
greater than zero.
|
default SeaFloor.Builder |
radius(double radius)
Sets the radius of the discs being spawned.
|
SeaFloor.Builder |
radius(VariableAmount radius)
Sets the radius of the discs being spawned.
|
SeaFloor.Builder |
replace(Predicate<BlockState> check)
Sets the predicate which will be applied to all
BlockStates
that this populator attempts to replace in order to determine if they
are valid. |
from, resetSeaFloor.Builder block(BlockState block)
BlockState to place down.block - The new block to placeSeaFloor.Builder perChunk(VariableAmount count)
count - The new amount to spawndefault SeaFloor.Builder perChunk(int count)
count - The new amount to spawnSeaFloor.Builder radius(VariableAmount radius)
radius - The new disc radiusdefault SeaFloor.Builder radius(double radius)
radius - The new disc radiusSeaFloor.Builder depth(VariableAmount depth)
depth - The new depthdefault SeaFloor.Builder depth(int depth)
depth - The new depthSeaFloor.Builder replace(Predicate<BlockState> check)
BlockStates
that this populator attempts to replace in order to determine if they
are valid.check - The new replacement checkSeaFloor build() throws IllegalStateException
SeaFloor populator with the
settings set within the builder.IllegalStateException - If there are any settings left unset
which do not have default values