Modifier and Type | Method and Description |
---|---|
Forest.Builder |
biomeDependant(boolean state)
Gets whether this populator will ignore the set tree type and default
to the biome's tree type.
|
Forest |
build()
Builds a new instance of a
Forest populator with the settings
set within the builder. |
Forest.Builder |
leaves(BlockState material)
Sets the
BlockState to spawn the leaves of the tree with,
this automatically sets the biome dependency flag to false. |
Forest.Builder |
perChunk(int count)
Sets the number of trees to attempt to spawn per chunk, must be
greater than zero.
|
Forest.Builder |
reset()
Resets this builder to the default values.
|
Forest.Builder |
trunk(BlockState material)
Sets the
BlockState to spawn the trunk of the tree with, this
automatically sets the biome dependency flag to false. |
Forest.Builder |
type(BiomeTreeType type)
Sets the
BiomeTreeType to spawn, this automatically sets the
biome dependency flag to false. |
Forest.Builder perChunk(int count)
count
- The new amount to spawnForest.Builder biomeDependant(boolean state)
state
- The new biome dependency stateForest.Builder type(BiomeTreeType type)
BiomeTreeType
to spawn, this automatically sets the
biome dependency flag to false.type
- The new type to spawnForest.Builder trunk(BlockState material)
BlockState
to spawn the trunk of the tree with, this
automatically sets the biome dependency flag to false.material
- The new trunk materialForest.Builder leaves(BlockState material)
BlockState
to spawn the leaves of the tree with,
this automatically sets the biome dependency flag to false.material
- The new leaves materialForest.Builder reset()
Forest build() throws IllegalStateException
Forest
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values