Modifier and Type | Interface and Description |
---|---|
static interface |
Cactus.Builder
A builder for constructing
Cactus populators. |
Modifier and Type | Method and Description |
---|---|
static Cactus.Builder |
builder()
Creates a new
Cactus.Builder to build a Cactus populator. |
VariableAmount |
getCactiPerChunk()
Gets the number of cacti to spawn per chunk.
|
VariableAmount |
getHeight()
Gets the height of the cacti.
|
default void |
setCactiPerChunk(int count)
Sets the number of cacti to spawn per chunk, cannot be negative.
|
void |
setCactiPerChunk(VariableAmount count)
Sets the number of cacti to spawn per chunk, cannot be negative.
|
default void |
setHeight(int count)
Sets the height of the cacti.
|
void |
setHeight(VariableAmount height)
Sets the height of the cacti.
|
static Cactus.Builder builder()
Cactus.Builder
to build a Cactus
populator.VariableAmount getCactiPerChunk()
void setCactiPerChunk(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 void setCactiPerChunk(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 spawnVariableAmount getHeight()
void setHeight(VariableAmount height)
height
- The new heightdefault void setHeight(int count)
count
- The new height