public class FlatRegionMaskingFilter extends java.lang.Object implements FlatRegionFunction
apply(BlockVector2)
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(BlockVector2 position)
Apply the function to the given position.
|
public FlatRegionMaskingFilter(Mask2D mask, FlatRegionFunction function)
mask
- the maskfunction
- the delegate function to callpublic boolean apply(BlockVector2 position) throws WorldEditException
FlatRegionFunction
apply
in interface FlatRegionFunction
position
- the positionWorldEditException
- thrown on an error