Modifier and Type | Method and Description |
---|---|
Lake |
build()
Builds a new instance of a
Lake populator with the settings
set within the builder. |
Lake.Builder |
chance(int chance)
Sets the chance of a lake spawning in a chunk.
|
Lake.Builder |
liquidType(BlockState liquid)
Sets the
BlockState of the liquid to fill the lake with. |
Lake.Builder |
reset()
Resets this builder to the default values.
|
Lake.Builder liquidType(BlockState liquid)
BlockState
of the liquid to fill the lake with.liquid
- The new lake block stateLake.Builder chance(int chance)
chance
- The new lake spawn chanceLake.Builder reset()
Lake build() throws IllegalStateException
Lake
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values