Modifier and Type | Method and Description |
---|---|
Shrub |
build()
Builds a new instance of a
Shrub populator with the settings
set within the builder. |
Shrub.Builder |
perChunk(int count)
Sets the number of shrubs to attempt to spawn per chunk, must be
greater than zero.
|
Shrub.Builder |
reset()
Resets this builder to the default values.
|
Shrub.Builder |
type(ShrubType type)
Sets the
ShrubType to place. |
Shrub.Builder perChunk(int count)
count
- The new amount of shrubs to spawnShrub.Builder type(ShrubType type)
ShrubType
to place.type
- The new shrub typeShrub.Builder reset()
Shrub build() throws IllegalStateException
Shrub
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values