public class MaskIntersection extends AbstractMask
Constructor and Description |
---|
MaskIntersection(java.util.Collection<Mask> masks)
Create a new intersection.
|
MaskIntersection(Mask... mask)
Create a new intersection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<Mask> masks)
Add some masks to the list.
|
void |
add(Mask... mask)
Add some masks to the list.
|
java.util.Collection<Mask> |
getMasks()
Get the masks that are tested with.
|
boolean |
test(BlockVector3 vector)
Returns true if the criteria is met.
|
Mask2D |
toMask2D()
Get the 2D version of this mask if one exists.
|
public MaskIntersection(java.util.Collection<Mask> masks)
masks
- a list of maskspublic MaskIntersection(Mask... mask)
mask
- a list of maskspublic void add(java.util.Collection<Mask> masks)
masks
- the maskspublic void add(Mask... mask)
mask
- the maskspublic java.util.Collection<Mask> getMasks()
public boolean test(BlockVector3 vector)
Mask
vector
- the vector to test