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(int chance)
Sets the chance of a pumpkin patch spawning within a chunk.
|
Pumpkin.Builder |
perChunk(int count)
Sets the number of pumpkins to attempt to spawn per patch, must be
greater than zero.
|
Pumpkin.Builder |
reset()
Resets this builder to the default values.
|
Pumpkin.Builder perChunk(int count)
count
- The new number to spawnPumpkin.Builder chance(int chance)
chance
- The new chance of a patch spawningPumpkin.Builder reset()
Pumpkin 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