public static interface Shrub.Builder extends ResettableBuilder<Shrub,Shrub.Builder>
Shrub
populators.Modifier and Type | Method and Description |
---|---|
Shrub |
build()
Builds a new instance of a
Shrub populator with the settings
set within the builder. |
default Shrub.Builder |
perChunk(int count)
Sets the number of shrubs to attempt to spawn per chunk, must be
greater than zero.
|
Shrub.Builder |
perChunk(VariableAmount count)
Sets the number of shrubs to attempt to spawn per chunk, must be
greater than zero.
|
Shrub.Builder |
supplier(Function<Location<Extent>,ShrubType> override)
Sets the overriding supplier.
|
Shrub.Builder |
type(ShrubType type,
int weight)
Adds the weighted
ShrubType s to the list of types. |
Shrub.Builder |
types(WeightedTable<ShrubType> types)
Sets the weighted
ShrubType s to place. |
from, reset
Shrub.Builder perChunk(VariableAmount count)
count
- The new amount of shrubs to spawndefault Shrub.Builder perChunk(int count)
count
- The new amount of shrubs to spawnShrub.Builder types(WeightedTable<ShrubType> types)
ShrubType
s to place.types
- The new shrub typesShrub.Builder type(ShrubType type, int weight)
ShrubType
s to the list of types.type
- The new shrub typeweight
- The weight of the typeShrub.Builder supplier(@Nullable Function<Location<Extent>,ShrubType> override)
override
- The new supplier override, or nullShrub build() throws IllegalStateException
Shrub
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values