| Modifier and Type | Interface and Description |
|---|---|
static interface |
Shrub.Builder
A builder for constructing
Shrub populators. |
| Modifier and Type | Method and Description |
|---|---|
static Shrub.Builder |
builder()
Creates a new
Shrub.Builder to build a Shrub populator. |
default void |
clearSupplierOverride()
Clears the supplier override to force the weighted table to be used
instead.
|
VariableAmount |
getShrubsPerChunk()
Gets the number of shrubs to attempt to spawn per chunk, must be greater
than zero.
|
Optional<Function<Location<Extent>,ShrubType>> |
getSupplierOverride()
Gets the overriding supplier if it exists.
|
WeightedTable<ShrubType> |
getTypes()
Gets a weighted collection of
ShrubTypes to place. |
default void |
setShrubsPerChunk(int count)
Sets the number of shrubs to attempt to spawn per chunk, must be greater
than zero.
|
void |
setShrubsPerChunk(VariableAmount count)
Sets the number of shrubs to attempt to spawn per chunk, must be greater
than zero.
|
void |
setSupplierOverride(Function<Location<Extent>,ShrubType> override)
Sets the overriding supplier.
|
static Shrub.Builder builder()
Shrub.Builder to build a Shrub populator.WeightedTable<ShrubType> getTypes()
ShrubTypes to place.VariableAmount getShrubsPerChunk()
void setShrubsPerChunk(VariableAmount count)
count - The new amount of shrubs to spawndefault void setShrubsPerChunk(int count)
count - The new amount of shrubs to spawnOptional<Function<Location<Extent>,ShrubType>> getSupplierOverride()
void setSupplierOverride(@Nullable Function<Location<Extent>,ShrubType> override)
override - The new supplier override, or nulldefault void clearSupplierOverride()