public class RegionMask extends AbstractMask
Constructor and Description |
---|
RegionMask(Region region)
Create a new region mask.
|
Modifier and Type | Method and Description |
---|---|
Region |
getRegion()
Get the region.
|
void |
setRegion(Region region)
Set the region that positions must be contained within.
|
boolean |
test(BlockVector3 vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
public RegionMask(Region region)
region
- the regionpublic Region getRegion()
public void setRegion(Region region)
region
- the regionpublic boolean test(BlockVector3 vector)
Mask
vector
- the vector to test