Class ForestGenerator
java.lang.Object
com.sk89q.worldedit.function.generator.ForestGenerator
- All Implemented Interfaces:
RegionFunction
Generates forests by searching for the ground starting from the given upper Y
coordinate for every column given.
-
Constructor Summary
ConstructorDescriptionForestGenerator
(EditSession editSession, TreeGenerator.TreeType treeType) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
ForestGenerator
Create a new instance.- Parameters:
editSession
- the edit sessiontreeType
- a tree generator
-
-
Method Details
-
apply
Description copied from interface:RegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-