Package com.sk89q.worldedit.function
Class RegionMaskingFilter
java.lang.Object
com.sk89q.worldedit.function.RegionMaskingFilter
- All Implemented Interfaces:
RegionFunction
Passes calls to
apply(BlockVector3)
to the
delegate RegionFunction
if they
match the given mask.-
Constructor Summary
ConstructorDescriptionRegionMaskingFilter
(Mask mask, RegionFunction function) Create a new masking filter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(BlockVector3 position) Apply the function to the given position.
-
Constructor Details
-
RegionMaskingFilter
Create a new masking filter.- Parameters:
mask
- the maskfunction
- the function
-
-
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
-