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
-
Method Summary
Modifier and TypeMethodDescriptioncopy2D()
getMask()
Get the mask.Get the offset.void
Set the mask.void
setOffset
(BlockVector2 offset) Set the offset.boolean
test
(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
Get the mask.- Returns:
- the mask
-
setMask
Set the mask.- Parameters:
mask
- the mask
-
getOffset
Get the offset.- Returns:
- the offset
-
setOffset
Set the offset.- Parameters:
offset
- the offset
-
test
Description copied from interface:Mask2D
Returns true if the criteria is met.- Parameters:
vector
- the vector to test- Returns:
- true if the criteria is met
-
copy2D
-