Modifier and Type | Method and Description |
---|---|
Glowstone.Builder |
blocksPerCluster(int attempts)
Sets the amount of glowstone to attempt to spawn per cluster, must be
greater than zero.
|
Glowstone |
build()
Builds a new instance of a
Glowstone populator with the
settings set within the builder. |
Glowstone.Builder |
perChunk(int count)
Sets the number of clusters to attempt to spawn per chunk, must be
greater than zero.
|
Glowstone.Builder |
reset()
Resets this builder to the default values.
|
Glowstone.Builder perChunk(int count)
count
- The new amount to spawnGlowstone.Builder blocksPerCluster(int attempts)
attempts
- The new amount to spawnGlowstone.Builder reset()
Glowstone build() throws IllegalStateException
Glowstone
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values