Package com.sk89q.worldedit.function
Class FlatRegionMaskingFilter
java.lang.Object
com.sk89q.worldedit.function.FlatRegionMaskingFilter
- All Implemented Interfaces:
FlatRegionFunction
Passes calls to
apply(BlockVector2)
to the
delegate FlatRegionFunction
if they
match the given mask.-
Constructor Summary
ConstructorsConstructorDescriptionFlatRegionMaskingFilter(Mask2D mask, FlatRegionFunction function)
Create a new masking filter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply(BlockVector2 position)
Apply the function to the given position.
-
Constructor Details
-
FlatRegionMaskingFilter
Create a new masking filter.- Parameters:
mask
- the maskfunction
- the delegate function to call
-
-
Method Details
-
apply
Description copied from interface:FlatRegionFunction
Apply the function to the given position.- Specified by:
apply
in interfaceFlatRegionFunction
- Parameters:
position
- the position- Returns:
- true if something was changed
- Throws:
WorldEditException
- thrown on an error
-