public static interface DoublePlant.Builder extends ResettableBuilder<DoublePlant,DoublePlant.Builder>
DoublePlant
populators.Modifier and Type | Method and Description |
---|---|
DoublePlant |
build()
Builds a new instance of a
DoublePlant populator with the
settings set within the builder. |
default DoublePlant.Builder |
perChunk(int count)
Sets the number of plants to create, cannot be negative.
|
DoublePlant.Builder |
perChunk(VariableAmount count)
Sets the number of plants to create, cannot be negative.
|
DoublePlant.Builder |
supplier(Function<Location<Extent>,DoublePlantType> override)
Sets the overriding supplier.
|
DoublePlant.Builder |
type(DoublePlantType type,
double weight)
Adds a plant type to the list that may be spawned in by this
populator.
|
DoublePlant.Builder |
types(WeightedTable<DoublePlantType> types)
Sets which plant types may be spawned in by this populator.
|
from, reset
DoublePlant.Builder types(WeightedTable<DoublePlantType> types)
types
- Possible typesDoublePlant.Builder type(DoublePlantType type, double weight)
type
- The new plant typeweight
- The weightDoublePlant.Builder perChunk(VariableAmount count)
Note: This number is not a definite number and the final count of plants which are successfully spawned by the populator will almost always be lower.
count
- The new base amountdefault DoublePlant.Builder perChunk(int count)
Note: This number is not a definite number and the final count of plants which are successfully spawned by the populator will almost always be lower.
count
- The new base amountDoublePlant.Builder supplier(@Nullable Function<Location<Extent>,DoublePlantType> override)
override
- The new supplier override, or nullDoublePlant build() throws IllegalStateException
DoublePlant
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values