Class OffsetMask
java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask
com.sk89q.worldedit.function.mask.OffsetMask
- All Implemented Interfaces:
Mask
Deprecated.
Checks whether another mask tests true for a position that is offset
a given vector.
-
Constructor Summary
ConstructorDescriptionOffsetMask
(Mask mask, BlockVector3 offset) Deprecated.Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetMask()
Deprecated.Get the mask.Deprecated.Get the offset.void
Deprecated.Set the mask.void
setOffset
(BlockVector3 offset) Deprecated.Set the offset.boolean
test
(BlockVector3 vector) Deprecated.Returns true if the criteria is met.toMask2D()
Deprecated.Get the 2D version of this mask if one exists.
-
Constructor Details
-
OffsetMask
Deprecated.Create a new instance.- Parameters:
mask
- the maskoffset
- the offset
-
-
Method Details
-
getMask
Deprecated.Get the mask.- Returns:
- the mask
-
setMask
Deprecated.Set the mask.- Parameters:
mask
- the mask
-
getOffset
Deprecated.Get the offset.- Returns:
- the offset
-
setOffset
Deprecated.Set the offset.- Parameters:
offset
- the offset
-
test
Deprecated.Description copied from interface:Mask
Returns true if the criteria is met.- Parameters:
vector
- the vector to test- Returns:
- true if the criteria is met
-
toMask2D
Deprecated.Description copied from interface:Mask
Get the 2D version of this mask if one exists.- Returns:
- a 2D mask version or
null
if this mask can't be 2D
-
OffsetsMask.single(com.sk89q.worldedit.function.mask.Mask, com.sk89q.worldedit.math.BlockVector3)