Modifier and Type | Method and Description |
---|---|
BlockBlob.Builder |
baseRadius(int radius)
Sets the base radius of the area for the blob, cannot be negative.
|
BlockBlob.Builder |
block(BlockState block)
Sets the
BlockState that this populator will place down to
form the blob. |
BlockBlob.Builder |
blockCount(int count)
Sets the number of blobs to spawn per chunk, must be greater than
zero.
|
BlockBlob |
build()
Builds a new instance of a
BlockBlob populator with the
settings set within the builder. |
BlockBlob.Builder |
radiusVariance(int variance)
Sets the radius variance of the blob, must be greater than zero (a
variance of one will correspond to a final radius of
finalRadius = baseRadius + [0,1) = baseRadius ). |
BlockBlob.Builder |
reset()
Resets this builder to the default values.
|
BlockBlob.Builder block(BlockState block)
BlockState
that this populator will place down to
form the blob.block
- the new block stateBlockBlob.Builder baseRadius(int radius)
This defaults to 1.
radius
- The new base radiusBlockBlob.Builder radiusVariance(int variance)
finalRadius = baseRadius + [0,1) = baseRadius
).
This defaults to 2.
variance
- The new radius varianceBlockBlob.Builder blockCount(int count)
This defaults to 3.
count
- The number of blobs to spawnBlockBlob.Builder reset()
BlockBlob build() throws IllegalStateException
BlockBlob
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values