Class MaskIntersection2D
java.lang.Object
com.sk89q.worldedit.function.mask.MaskIntersection2D
- All Implemented Interfaces:
Mask2D
- Direct Known Subclasses:
MaskUnion2D
Tests true if all contained masks test true.
-
Constructor Summary
ConstructorsConstructorDescriptionMaskIntersection2D(Mask2D... mask)
Create a new intersection.MaskIntersection2D(Collection<Mask2D> masks)
Create a new intersection. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add some masks to the list.void
add(Collection<Mask2D> masks)
Add some masks to the list.getMasks()
Get the masks that are tested with.boolean
test(BlockVector2 vector)
Returns true if the criteria is met.
-
Constructor Details
-
MaskIntersection2D
Create a new intersection.- Parameters:
masks
- a list of masks
-
MaskIntersection2D
Create a new intersection.- Parameters:
mask
- a list of masks
-
-
Method Details
-
add
Add some masks to the list.- Parameters:
masks
- the masks
-
add
Add some masks to the list.- Parameters:
mask
- the masks
-
getMasks
Get the masks that are tested with.- Returns:
- the masks
-
test
Description copied from interface:Mask2D
Returns true if the criteria is met.
-