Modifier and Type | Interface and Description |
---|---|
static interface |
BigMushroom.Builder
A builder for constructing
BigMushroom populators. |
Modifier and Type | Method and Description |
---|---|
int |
getMushroomsPerChunk()
Gets the number of mushrooms which will be attempted to be spawned.
|
Optional<BigMushroomType> |
getType()
Gets the type of mushroom being placed by this populator.
|
void |
setMushroomsPerChunk(int count)
Sets the number of mushrooms which will be attempted to be spawned.
|
void |
setType(BigMushroomType type)
Sets the type of mushroom to place.
|
void |
useRandomizedTypes(boolean state)
Sets whether this populator is randomizing which type it is placing.
|
boolean |
usesRandomizedType()
Gets whether this populator is randomizing which type it is placing.
|
Optional<BigMushroomType> getType()
usesRandomizedType()
. If the populator is set
to randomize then this method will return absent.void setType(BigMushroomType type)
usesRandomizedType()
to false.type
- The new mushroom typeboolean usesRandomizedType()
This defaults to true.
void useRandomizedTypes(boolean state)
state
- The new stateint 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.
The default value for this is 1 (from
BiomeTypes.MUSHROOM_ISLAND
.
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 create