public static interface Pumpkin.Builder extends ResettableBuilder<Pumpkin,Pumpkin.Builder>
Pumpkin
populators.Modifier and Type | Method and Description |
---|---|
Pumpkin |
build()
Builds a new instance of a
Pumpkin populator with the
settings set within the builder. |
Pumpkin.Builder |
chance(double p)
Sets the probability of a pumpkin patch spawning within a chunk.
|
default Pumpkin.Builder |
perChunk(int count)
Sets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
Pumpkin.Builder |
perChunk(VariableAmount count)
Sets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
from, reset
Pumpkin.Builder perChunk(VariableAmount count)
count
- The new number to spawndefault Pumpkin.Builder perChunk(int count)
count
- The new number to spawnPumpkin.Builder chance(double p)
p
- The new probability of a patch spawningPumpkin build() throws IllegalStateException
Pumpkin
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values