public static interface 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. |
BigMushroom.Builder |
mushroomsPerChunk(int count)
Sets the number of mushrooms which will be attempted to be spawned.
|
BigMushroom.Builder |
randomizeType()
Sets whether this populator is randomizing which type it is placing.
|
BigMushroom.Builder |
reset()
Resets this builder to the default values.
|
BigMushroom.Builder |
type(BigMushroomType type)
Sets the type of mushroom to place.
|
BigMushroom.Builder type(BigMushroomType type)
BigMushroom.usesRandomizedType()
to false.
Defaults to absent with the
BigMushroom.usesRandomizedType()
flag set to true.
type
- The new mushroom typeBigMushroom.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 randomizeType()
This defaults to true.
BigMushroom.Builder reset()
BigMushroom 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