Modifier and Type | Interface and Description |
---|---|
static interface |
Pumpkin.Builder
A builder for constructing
Pumpkin populators. |
Modifier and Type | Method and Description |
---|---|
static Pumpkin.Builder |
builder()
Creates a new
Pumpkin.Builder to build a Pumpkin populator. |
double |
getPumpkinChance()
Gets the probability of a pumpkin patch spawning within a chunk.
|
VariableAmount |
getPumpkinsPerChunk()
Gets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
void |
setPumpkinChance(double p)
Sets the probability of a pumpkin patch spawning within a chunk.
|
default void |
setPumpkinsPerChunk(int count)
Sets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
void |
setPumpkinsPerChunk(VariableAmount count)
Sets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
static Pumpkin.Builder builder()
Pumpkin.Builder
to build a Pumpkin
populator.VariableAmount getPumpkinsPerChunk()
void setPumpkinsPerChunk(VariableAmount count)
count
- The new number to spawndefault void setPumpkinsPerChunk(int count)
count
- The new number to spawndouble getPumpkinChance()
void setPumpkinChance(double p)
p
- The new probability of a patch spawning