Class MaskIntersection
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask
com.sk89q.worldedit.function.mask.MaskIntersection
- All Implemented Interfaces:
Mask
- Direct Known Subclasses:
MaskUnion
Combines several masks and requires that all masks return true
when a certain position is tested. It serves as a logical AND operation
on a list of masks.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMaskIntersection(Mask... mask) Create a new intersection.MaskIntersection(Collection<Mask> masks) Create a new intersection. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd some masks to the list.voidadd(Collection<Mask> masks) Add some masks to the list.copy()Returns a copy of the mask.getMasks()Get the masks that are tested with.final Mask[]static Maskbooleanbooleantest(BlockVector3 vector) Returns true if the criteria is met.toMask2D()Get the 2D version of this mask if one exists.Returns null if no optimization took place otherwise a new/same mask
-
Field Details
-
masks
-
masksArray
-
defaultReturn
protected boolean defaultReturn
-
-
Constructor Details
-
MaskIntersection
Create a new intersection.- Parameters:
masks- a list of masks
-
MaskIntersection
-
-
Method Details
-
of
-
pairingFunction
-
tryOptimize
-
add
-
add
-
getMasks
-
getMasksArray
-
test
Description copied from interface:MaskReturns true if the criteria is met.- Parameters:
vector- the vector to test- Returns:
- true if the criteria is met
-
toMask2D
-
copy
-
replacesAir
public boolean replacesAir()
-