Class MaskUnion2D
java.lang.Object
com.sk89q.worldedit.function.mask.MaskIntersection2D
com.sk89q.worldedit.function.mask.MaskUnion2D
- All Implemented Interfaces:
Mask2D
Tests true if any contained mask is true, even if it just one.
-
Field Summary
Fields inherited from class com.sk89q.worldedit.function.mask.MaskIntersection2D
masks
-
Constructor Summary
ConstructorDescriptionMaskUnion2D
(Mask2D... mask) Create a new union.MaskUnion2D
(Collection<Mask2D> masks) Create a new union. -
Method Summary
Modifier and TypeMethodDescriptioncopy2D()
boolean
test
(BlockVector2 vector) Returns true if the criteria is met.Methods inherited from class com.sk89q.worldedit.function.mask.MaskIntersection2D
add, add, getMasks
-
Constructor Details
-
MaskUnion2D
Create a new union.- Parameters:
masks
- a list of masks
-
MaskUnion2D
Create a new union.- Parameters:
mask
- a list of masks
-
-
Method Details
-
test
Description copied from interface:Mask2D
Returns true if the criteria is met.- Specified by:
test
in interfaceMask2D
- Overrides:
test
in classMaskIntersection2D
- Parameters:
vector
- the vector to test- Returns:
- true if the criteria is met
-
copy2D
- Specified by:
copy2D
in interfaceMask2D
- Overrides:
copy2D
in classMaskIntersection2D
-