Class FeatureGenerator
java.lang.Object
com.sk89q.worldedit.function.generator.FeatureGenerator
- All Implemented Interfaces:
RegionFunction
Attempt to generate features for every location in the given region.
-
Constructor Summary
ConstructorDescriptionFeatureGenerator
(EditSession editSession, ConfiguredFeatureType featureType) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
FeatureGenerator
Create a new instance.- Parameters:
editSession
- the edit sessionfeatureType
- the feature type
-
-
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
-