Class OffsetMask2D

java.lang.Object
com.sk89q.worldedit.function.mask.AbstractMask2D
com.sk89q.worldedit.function.mask.OffsetMask2D
All Implemented Interfaces:
Mask2D

@Deprecated public class OffsetMask2D extends AbstractMask2D
Checks whether another mask tests true for a position that is offset a given vector.
  • Constructor Details

    • OffsetMask2D

      public OffsetMask2D(Mask2D mask, BlockVector2 offset)
      Deprecated.
      Create a new instance.
      Parameters:
      mask - the mask
      offset - the offset
  • Method Details

    • getMask

      public Mask2D getMask()
      Deprecated.
      Get the mask.
      Returns:
      the mask
    • setMask

      public void setMask(Mask2D mask)
      Deprecated.
      Set the mask.
      Parameters:
      mask - the mask
    • getOffset

      public BlockVector2 getOffset()
      Deprecated.
      Get the offset.
      Returns:
      the offset
    • setOffset

      public void setOffset(BlockVector2 offset)
      Deprecated.
      Set the offset.
      Parameters:
      offset - the offset
    • test

      public boolean test(BlockVector2 vector)
      Deprecated.
      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