public class ForestGenerator extends Object implements RegionFunction
| Constructor and Description |
|---|
ForestGenerator(EditSession editSession,
TreeGenerator treeGenerator)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Vector position)
Apply the function to the given position.
|
public ForestGenerator(EditSession editSession, TreeGenerator treeGenerator)
editSession - the edit sessiontreeGenerator - a tree generatorpublic boolean apply(Vector position) throws WorldEditException
RegionFunctionapply in interface RegionFunctionposition - the positionWorldEditException - thrown on an errorCopyright © 2010-2014. All Rights Reserved.