public static interface Cactus.Builder extends ResettableBuilder<Cactus,Cactus.Builder>
Cactus
populators.Modifier and Type | Method and Description |
---|---|
Cactus |
build()
Builds a new instance of a
Cactus populator with the settings
set within the builder. |
default Cactus.Builder |
cactiPerChunk(int count)
Sets the number of cacti to spawn per chunk, cannot be negative.
|
Cactus.Builder |
cactiPerChunk(VariableAmount count)
Sets the number of cacti to spawn per chunk, cannot be negative.
|
default Cactus.Builder |
height(int height)
Sets the height of the cacti.
|
Cactus.Builder |
height(VariableAmount height)
Sets the height of the cacti.
|
from, reset
Cactus.Builder cactiPerChunk(VariableAmount count)
Note: This number is not a definite number and the final count of cacti which are successfully spawned by the populator will almost always be lower.
count
- The new number of cacti to spawndefault Cactus.Builder cactiPerChunk(int count)
Note: This number is not a definite number and the final count of cacti which are successfully spawned by the populator will almost always be lower.
count
- The new number of cacti to spawnCactus.Builder height(VariableAmount height)
height
- The new heightdefault Cactus.Builder height(int height)
height
- The new heightCactus 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