Modifier and Type | Method and Description |
---|---|
Cactus |
build()
Builds a new instance of a
Cactus populator with the settings
set within the builder. |
Cactus.Builder |
cactiPerChunk(int count)
Sets the number of cacti to spawn per chunk, cannot be negative.
|
Cactus.Builder |
reset()
Resets this builder to the default values.
|
Cactus.Builder cactiPerChunk(int count)
count
- The new number of cacti to spawnCactus.Builder reset()
Cactus build() throws IllegalStateException
Cactus
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values