Class MaskUnion
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask
com.sk89q.worldedit.function.mask.MaskIntersection
com.sk89q.worldedit.function.mask.MaskUnion
- All Implemented Interfaces:
Mask
Combines several masks and requires that one or more masks return true
when a certain position is tested. It serves as a logical OR operation
on a list of masks.
-
Field Summary
Fields inherited from class MaskIntersection
defaultReturn, masks, masksArray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a copy of the mask.static Maskbooleanbooleantest(BlockVector3 vector) Returns true if the criteria is met.toMask2D()Get the 2D version of this mask if one exists.Methods inherited from class MaskIntersection
add, add, getMasks, getMasksArray, tryOptimize
-
Constructor Details
-
MaskUnion
-
MaskUnion
-
-
Method Details
-
of
-
pairingFunction
- Overrides:
pairingFunctionin classMaskIntersection
-
test
Description copied from interface:MaskReturns true if the criteria is met.- Specified by:
testin interfaceMask- Overrides:
testin classMaskIntersection- Parameters:
vector- the vector to test- Returns:
- true if the criteria is met
-
toMask2D
-
copy
-
replacesAir
public boolean replacesAir()- Specified by:
replacesAirin interfaceMask- Overrides:
replacesAirin classMaskIntersection
-