Class OffsetMask2D
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask2D
com.sk89q.worldedit.function.mask.OffsetMask2D
- All Implemented Interfaces:
Mask2D
Checks whether another mask tests true for a position that is offset
a given vector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy2D()getMask()Get the mask.Get the offset.voidSet the mask.voidsetOffset(BlockVector2 offset) Set the offset.booleantest(BlockVector2 vector) Returns true if the criteria is met.
-
Constructor Details
-
OffsetMask2D
Create a new instance.- Parameters:
mask- the maskoffset- the offset
-
-
Method Details
-
getMask
-
setMask
-
getOffset
-
setOffset
-
test
Description copied from interface:Mask2DReturns true if the criteria is met.- Parameters:
vector- the vector to test- Returns:
- true if the criteria is met
-
copy2D
-