public class FloraGenerator extends 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(Vector 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(Vector position) throws WorldEditException
RegionFunctionapply in interface RegionFunctionposition - the positionWorldEditException - thrown on an errorCopyright © 2010-2014. All Rights Reserved.