public static interface Forest.Builder extends ResettableBuilder<Forest,Forest.Builder>
Forest
populators.Modifier and Type | Method and Description |
---|---|
Forest |
build()
Builds a new instance of a
Forest populator with the settings
set within the builder. |
default Forest.Builder |
perChunk(int count)
Sets the number of trees to attempt to spawn per chunk, must be
greater than zero.
|
Forest.Builder |
perChunk(VariableAmount count)
Sets the number of trees to attempt to spawn per chunk, must be
greater than zero.
|
Forest.Builder |
supplier(Function<Location<Extent>,PopulatorObject> override)
Sets the overriding supplier.
|
Forest.Builder |
type(PopulatorObject type,
double weight)
Sets the
BiomeTreeType to the list of weighted types. |
Forest.Builder |
types(WeightedTable<PopulatorObject> types)
Sets the
BiomeTreeType s to spawn. |
from, reset
Forest.Builder perChunk(VariableAmount count)
count
- The new amount to spawndefault Forest.Builder perChunk(int count)
count
- The new amount to spawnForest.Builder types(WeightedTable<PopulatorObject> types)
BiomeTreeType
s to spawn.types
- The new types to spawnForest.Builder type(PopulatorObject type, double weight)
BiomeTreeType
to the list of weighted types.type
- The new type to addweight
- The weight of the typeForest.Builder supplier(@Nullable Function<Location<Extent>,PopulatorObject> override)
override
- The new supplier override, or nullForest 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