public interface BlockBlob extends Populator
Modifier and Type | Interface and Description |
---|---|
static interface |
BlockBlob.Builder
A builder for constructing
BlockBlob populators. |
Modifier and Type | Method and Description |
---|---|
int |
getBaseRadius()
Gets the base radius of the area for the blob.
|
BlockState |
getBlock()
Gets the
BlockState that this populator will place down to form
the blob. |
int |
getCount()
Gets the number of blobs which will be placed per chunk.
|
int |
getRadiusVariance()
Gets the radius variance of the blob.
|
void |
setBaseRadius(int radius)
Sets the base radius of the area for the blob, cannot be negative.
|
void |
setBlock(BlockState state)
Sets the
BlockState that this populator will place down to form
the blob. |
void |
setCount(int count)
Sets the number of blobs to spawn per chunk, must be greater than zero.
|
void |
setRadiusVariance(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 ). |
BlockState getBlock()
BlockState
that this populator will place down to form
the blob.void setBlock(BlockState state)
BlockState
that this populator will place down to form
the blob.state
- The new block stateint getBaseRadius()
void setBaseRadius(int radius)
This defaults to 1.
radius
- The new base radiusint getRadiusVariance()
void setRadiusVariance(int variance)
finalRadius = baseRadius + [0,1) = baseRadius
).
This defaults to 2.
variance
- The new radius varianceint getCount()
void setCount(int count)
This defaults to 3.
count
- The new number of blobs