public class FloraGenerator extends java.lang.Object implements RegionFunction
The current implementation is not biome-aware, but it may become so in the future.
Constructor and Description |
---|
FloraGenerator(EditSession editSession)
Create a new flora generator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
static Pattern |
getDesertPattern()
Get a pattern for plants to place inside a desert environment.
|
static Pattern |
getTemperatePattern()
Get a pattern for plants to place inside a temperate environment.
|
boolean |
isBiomeAware()
Return whether the flora generator is set to be biome-aware.
|
void |
setBiomeAware(boolean biomeAware)
Set whether the generator is biome aware.
|
public FloraGenerator(EditSession editSession)
editSession
- the edit sessionpublic boolean isBiomeAware()
By default, it is currently disabled by default, but this may change.
public void setBiomeAware(boolean biomeAware)
It is currently not possible to make the generator biome-aware.
biomeAware
- must always be falsepublic static Pattern getDesertPattern()
public static Pattern getTemperatePattern()
public boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error