Modifier and Type | Interface and Description |
---|---|
static interface |
SeaFloor.Builder
A builder for constructing
SeaFloor populators. |
Modifier and Type | Method and Description |
---|---|
static SeaFloor.Builder |
builder()
Creates a new
SeaFloor.Builder to build a SeaFloor populator. |
BlockState |
getBlock()
Gets the
BlockState to place down. |
VariableAmount |
getDepth()
Gets the depth of the sea floor cover to generate.
|
VariableAmount |
getDiscsPerChunk()
Gets the number of discs to attempt to spawn per chunk, must be greater
than zero.
|
VariableAmount |
getRadius()
Gets the radius of the discs being spawned.
|
Predicate<BlockState> |
getValidBlocksToReplace()
Gets the predicate which is applied to determine what
BlockState s
this populator may replace. |
void |
setBlock(BlockState block)
Sets the
BlockState to place down. |
default void |
setDepth(int depth)
Sets the depth of the sea floor cover to generate.
|
void |
setDepth(VariableAmount depth)
Sets the depth of the sea floor cover to generate.
|
default void |
setDiscsPerChunk(int count)
Sets the number of discs to attempt to spawn per chunk, must be greater
than zero.
|
void |
setDiscsPerChunk(VariableAmount count)
Sets the number of discs to attempt to spawn per chunk, must be greater
than zero.
|
default void |
setRadius(double radius)
Sets the radius of the discs being spawned.
|
void |
setRadius(VariableAmount radius)
Sets the radius of the discs being spawned.
|
void |
setValidBlocksToReplace(Predicate<BlockState> check)
Sets the predicate which will be applied to all
BlockState s that
this populator attempts to replace in order to determine if they are
valid. |
static SeaFloor.Builder builder()
SeaFloor.Builder
to build a SeaFloor
populator.BlockState getBlock()
BlockState
to place down.void setBlock(BlockState block)
BlockState
to place down.block
- The new block to placeVariableAmount getDiscsPerChunk()
void setDiscsPerChunk(VariableAmount count)
count
- The new amount to spawndefault void setDiscsPerChunk(int count)
count
- The new amount to spawnVariableAmount getRadius()
void setRadius(VariableAmount radius)
radius
- The new disc radiusdefault void setRadius(double radius)
radius
- The new disc radiusVariableAmount getDepth()
void setDepth(VariableAmount depth)
depth
- The new depthdefault void setDepth(int depth)
depth
- The new depthPredicate<BlockState> getValidBlocksToReplace()
BlockState
s
this populator may replace.void setValidBlocksToReplace(Predicate<BlockState> check)
BlockState
s that
this populator attempts to replace in order to determine if they are
valid.check
- The new replacement check