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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaskIntersection2D(Mask2D... mask) Create a new intersection.MaskIntersection2D(Collection<Mask2D> masks) Create a new intersection. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd some masks to the list.voidadd(Collection<Mask2D> masks) Add some masks to the list.copy2D()getMasks()Get the masks that are tested with.booleantest(BlockVector2 vector) Returns true if the criteria is met.
-
Field Details
-
masks
-
-
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:Mask2DReturns true if the criteria is met. -
copy2D
-