public class RegionMaskingFilter extends java.lang.Object implements RegionFunction
apply(BlockVector3)
to the
delegate RegionFunction
if they
match the given mask.Constructor and Description |
---|
RegionMaskingFilter(Mask mask,
RegionFunction function)
Create a new masking filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
apply(BlockVector3 position)
Apply the function to the given position.
|
public RegionMaskingFilter(Mask mask, RegionFunction function)
mask
- the maskfunction
- the functionpublic boolean apply(BlockVector3 position) throws WorldEditException
RegionFunction
apply
in interface RegionFunction
position
- the positionWorldEditException
- thrown on an error