public static interface Flower.Builder extends ResettableBuilder<Flower,Flower.Builder>
Flower
populators.Modifier and Type | Method and Description |
---|---|
Flower |
build()
Builds a new instance of a
Flower populator with the settings
set within the builder. |
default Flower.Builder |
perChunk(int count)
Sets the number of flowers to attempt to spawn per chunk, must be
greater than zero.
|
Flower.Builder |
perChunk(VariableAmount count)
Sets the number of flowers to attempt to spawn per chunk, must be
greater than zero.
|
Flower.Builder |
supplier(Function<Location<Extent>,PlantType> override)
Sets the overriding supplier.
|
Flower.Builder |
type(PlantType type,
double weight)
Adds the plant type to the list of types to spawn with the given
weight.
|
Flower.Builder |
types(WeightedTable<PlantType> types)
Sets the plant types for this populator to spawn.
|
from, reset
Flower.Builder perChunk(VariableAmount count)
Note: This number is not a definite number and the final count of flowers which are successfully spawned by the populator will almost always be lower.
count
- The new amount to spawndefault Flower.Builder perChunk(int count)
Note: This number is not a definite number and the final count of flowers which are successfully spawned by the populator will almost always be lower.
count
- The new amount to spawnFlower.Builder types(WeightedTable<PlantType> types)
types
- The plant types to spawnFlower.Builder type(PlantType type, double weight)
type
- The plant type to spawnweight
- The weight of the typeFlower.Builder supplier(Function<Location<Extent>,PlantType> override)
override
- The new supplier override, or nullFlower build() throws IllegalStateException
Flower
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values