Class SimpleClipboard

java.lang.Object
com.fastasyncworldedit.core.extent.clipboard.SimpleClipboard
All Implemented Interfaces:
Clipboard, Extent, InputExtent, OutputExtent, Closeable, Flushable, AutoCloseable, Iterable<BlockVector3>
Direct Known Subclasses:
LinearClipboard, ReadOnlyClipboard

public abstract class SimpleClipboard extends Object implements Clipboard
  • Field Details

  • Method Details

    • setOffset

      protected void setOffset(BlockVector3 offset)
    • getOrigin

      public BlockVector3 getOrigin()
      Description copied from interface: Clipboard
      Get the origin point from which the copy was made from.
      Specified by:
      getOrigin in interface Clipboard
      Returns:
      the origin
    • setOrigin

      public void setOrigin(BlockVector3 origin)
      Description copied from interface: Clipboard
      Set the origin point from which the copy was made from.
      Specified by:
      setOrigin in interface Clipboard
      Parameters:
      origin - the origin
    • getMinimumPoint

      public BlockVector3 getMinimumPoint()
      Description copied from interface: Extent
      Get the minimum point in the extent.

      If the extent is unbounded, then a large (negative) value may be returned.

      Specified by:
      getMinimumPoint in interface Extent
      Returns:
      the minimum point
    • getMaximumPoint

      public BlockVector3 getMaximumPoint()
      Description copied from interface: Extent
      Get the maximum point in the extent.

      If the extent is unbounded, then a large (positive) value may be returned.

      Specified by:
      getMaximumPoint in interface Extent
      Returns:
      the maximum point
    • getRegion

      public Region getRegion()
      Description copied from interface: Clipboard
      Get the bounding region of this extent.

      Implementations should return a copy of the region.

      Specified by:
      getRegion in interface Clipboard
      Returns:
      the bounding region
    • getDimensions

      public final BlockVector3 getDimensions()
      Description copied from interface: Clipboard
      Get the dimensions of the copy, which is at minimum (1, 1, 1).
      Specified by:
      getDimensions in interface Clipboard
      Returns:
      the dimensions
    • getWidth

      public final int getWidth()
      Specified by:
      getWidth in interface Clipboard
    • getHeight

      public final int getHeight()
      Specified by:
      getHeight in interface Clipboard
    • getLength

      public final int getLength()
      Specified by:
      getLength in interface Clipboard
    • getArea

      public int getArea()
      Specified by:
      getArea in interface Clipboard
    • getVolume

      public int getVolume()
      Specified by:
      getVolume in interface Clipboard