public static interface BigMushroom.Builder extends ResettableBuilder<BigMushroom,BigMushroom.Builder>
BigMushroom
populators.Modifier and Type | Method and Description |
---|---|
BigMushroom |
build()
Builds a new instance of a
BigMushroom populator with the
settings set within the builder. |
default BigMushroom.Builder |
mushroomsPerChunk(int count)
Sets the number of mushrooms which will be attempted to be spawned.
|
BigMushroom.Builder |
mushroomsPerChunk(VariableAmount count)
Sets the number of mushrooms which will be attempted to be spawned.
|
BigMushroom.Builder |
supplier(Function<Location<Extent>,PopulatorObject> override)
Sets the overriding supplier.
|
BigMushroom.Builder |
type(PopulatorObject type,
double weight)
Adds the weighted
PopulatorObject to the list of available
types. |
BigMushroom.Builder |
types(WeightedTable<PopulatorObject> types)
Sets the weighted
PopulatorObject s to select from during
generation. |
from, reset
BigMushroom.Builder types(WeightedTable<PopulatorObject> types)
PopulatorObject
s to select from during
generation.types
- The weighted typesBigMushroom.Builder type(PopulatorObject type, double weight)
PopulatorObject
to the list of available
types.type
- The new weighted typeweight
- The weight of the new typeBigMushroom.Builder mushroomsPerChunk(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 BigMushroom.Builder mushroomsPerChunk(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 createBigMushroom.Builder supplier(Function<Location<Extent>,PopulatorObject> override)
override
- The new supplier override, or nullBigMushroom build() throws IllegalStateException
BigMushroom
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values