Modifier and Type | Interface and Description |
---|---|
static interface |
BigMushroom.Builder
A builder for constructing
BigMushroom populators. |
Modifier and Type | Method and Description |
---|---|
static BigMushroom.Builder |
builder()
Creates a new
BigMushroom.Builder to build a BigMushroom populator. |
default void |
clearSupplierOverride()
Clears the supplier override to force the weighted table to be used
instead.
|
VariableAmount |
getMushroomsPerChunk()
Gets a representation of the amount of mushrooms which will be attempted
to be spawned per chunk.
|
Optional<Function<Location<Extent>,PopulatorObject>> |
getSupplierOverride()
Gets the overriding supplier if it exists.
|
WeightedTable<PopulatorObject> |
getTypes()
Gets a mutable
WeightedTable of possible mushroom types to spawn. |
default void |
setMushroomsPerChunk(int count)
Sets the amount of mushrooms which will be attempted to be spawned per
chunk.
|
void |
setMushroomsPerChunk(VariableAmount count)
Sets the representation of the amount of mushrooms which will be
attempted to be spawned per chunk.
|
void |
setSupplierOverride(Function<Location<Extent>,PopulatorObject> override)
Sets the overriding supplier.
|
static BigMushroom.Builder builder()
BigMushroom.Builder
to build a BigMushroom
populator.WeightedTable<PopulatorObject> getTypes()
WeightedTable
of possible mushroom types to spawn.VariableAmount getMushroomsPerChunk()
Note: This number is not a definite number and the final count of mushrooms which are successfully spawned by the populator will almost always be lower.
void setMushroomsPerChunk(VariableAmount count)
Note: This number is not a definite number and the final count of mushrooms which are successfully spawned by the populator will almost always be lower.
count
- The new amount to attempt to createdefault void setMushroomsPerChunk(int count)
Note: This number is not a definite number and the final count of mushrooms which are successfully spawned by the populator will almost always be lower.
count
- The new amount to attempt to createOptional<Function<Location<Extent>,PopulatorObject>> getSupplierOverride()
void setSupplierOverride(@Nullable Function<Location<Extent>,PopulatorObject> override)
override
- The new supplier override, or nulldefault void clearSupplierOverride()