public class MaskUnion extends MaskIntersection
Constructor and Description |
---|
MaskUnion(java.util.Collection<Mask> masks)
Create a new union.
|
MaskUnion(Mask... mask)
Create a new union.
|
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.
|
add, add, getMasks
public MaskUnion(java.util.Collection<Mask> masks)
masks
- a list of maskspublic MaskUnion(Mask... mask)
mask
- a list of maskspublic boolean test(BlockVector3 vector)
Mask
test
in interface Mask
test
in class MaskIntersection
vector
- the vector to test