Class OffsetMask2D

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

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)
      Create a new instance.
      Parameters:
      mask - the mask
      offset - the offset
  • Method Details

    • getMask

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

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

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

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

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

      public Mask2D copy2D()