public class BoundedHeightMask extends AbstractMask
Constructor and Description |
---|
BoundedHeightMask(int minY,
int maxY)
Create a new bounded height mask.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(BlockVector3 vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
public BoundedHeightMask(int minY, int maxY)
minY
- the minimum YmaxY
- the maximum Y (must be equal to or greater than minY)public boolean test(BlockVector3 vector)
Mask
vector
- the vector to test