public class ForestGenerator extends java.lang.Object implements RegionFunction
Constructor and Description |
---|
ForestGenerator(EditSession editSession,
TreeGenerator.TreeType treeType)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public ForestGenerator(EditSession editSession, TreeGenerator.TreeType treeType)
editSession
- the edit sessiontreeType
- a tree generatorpublic boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error