Modifier and Type | Method and Description |
---|---|
Melons |
build()
Builds a new instance of a
Melons populator with the settings
set within the builder. |
Melons.Builder |
perChunk(int count)
Sets the number of melons to attempt to spawn per chunk.
|
Melons.Builder |
reset()
Resets this builder to the default values.
|
Melons.Builder perChunk(int count)
count
- The new amount to spawnMelons.Builder reset()
Melons build() throws IllegalStateException
Melons
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values