Modifier and Type | Interface and Description |
---|---|
static interface |
Flowers.Builder
A builder for constructing
Flowers populators. |
Modifier and Type | Method and Description |
---|---|
int |
getFlowersPerChunk()
Gets the number of flowers to attempt to spawn per chunk, must be greater
than zero.
|
Optional<PlantType> |
getFlowerType()
Gets the plant type for this populator to spawn.
|
boolean |
isBiomeDependent()
Gets whether this populator will ignore the set plant type and default to
the biome's flower type.
|
void |
serFlowerType(PlantType type)
Sets the plant type for this populator to spawn.
|
void |
setBiomeDependent(boolean state)
Sets whether this populator will ignore the set tile and default to the
biome's flower type.
|
void |
setFlowersPerChunk(int count)
Sets the number of flowers to attempt to spawn per chunk, must be greater
than zero.
|
int getFlowersPerChunk()
void setFlowersPerChunk(int count)
count
- The new amount to spawnboolean isBiomeDependent()
void setBiomeDependent(boolean state)
state
- The new biome dependency stateOptional<PlantType> getFlowerType()
isBiomeDependent()
) then
this will return absent.void serFlowerType(PlantType type)
isBiomeDependent()
flag to false.type
- The plant type to spawn