public class FlatRegionMaskingFilter extends java.lang.Object implements FlatRegionFunction
apply(com.sk89q.worldedit.Vector2D)
to the
delegate FlatRegionFunction
if they
match the given mask.Constructor and Description |
---|
FlatRegionMaskingFilter(Mask2D mask,
FlatRegionFunction function)
Create a new masking filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Vector2D position)
Apply the function to the given position.
|
public FlatRegionMaskingFilter(Mask2D mask, FlatRegionFunction function)
mask
- the maskfunction
- the delegate function to callpublic boolean apply(Vector2D position) throws WorldEditException
FlatRegionFunction
apply
in interface FlatRegionFunction
position
- the positionWorldEditException
- thrown on an error