Interface IDelegateRegion

All Superinterfaces:
Cloneable, IBatchProcessor, Iterable<BlockVector3>, Region
All Known Implementing Classes:
FaweMask

public interface IDelegateRegion extends Region
  • Method Details

    • getRegion

      Region getRegion()
    • iterator

      @Nonnull default Iterator<BlockVector3> iterator()
      Specified by:
      iterator in interface Iterable<BlockVector3>
    • getMinimumPoint

      default BlockVector3 getMinimumPoint()
      Description copied from interface: Region
      Get the lower point of a region.
      Specified by:
      getMinimumPoint in interface Region
      Returns:
      min. point
    • getMaximumPoint

      default BlockVector3 getMaximumPoint()
      Description copied from interface: Region
      Get the upper point of a region.
      Specified by:
      getMaximumPoint in interface Region
      Returns:
      max. point
    • getCenter

      default Vector3 getCenter()
      Description copied from interface: Region
      Get the center point of a region. Note: Coordinates will not be integers if the corresponding lengths are even.
      Specified by:
      getCenter in interface Region
      Returns:
      center point
    • getArea

      default int getArea()
      Description copied from interface: Region
      Get the number of blocks in the region.
      Specified by:
      getArea in interface Region
      Returns:
      number of blocks
    • getWidth

      default int getWidth()
      Description copied from interface: Region
      Get X-size.
      Specified by:
      getWidth in interface Region
      Returns:
      width
    • getHeight

      default int getHeight()
      Description copied from interface: Region
      Get Y-size.
      Specified by:
      getHeight in interface Region
      Returns:
      height
    • getLength

      default int getLength()
      Description copied from interface: Region
      Get Z-size.
      Specified by:
      getLength in interface Region
      Returns:
      length
    • expand

      default void expand(BlockVector3... changes) throws RegionOperationException
      Description copied from interface: Region
      Expand the region.
      Specified by:
      expand in interface Region
      Parameters:
      changes - array/arguments with multiple related changes
      Throws:
      RegionOperationException - if the operation cannot be performed
    • contract

      default void contract(BlockVector3... changes) throws RegionOperationException
      Description copied from interface: Region
      Contract the region.
      Specified by:
      contract in interface Region
      Parameters:
      changes - array/arguments with multiple related changes
      Throws:
      RegionOperationException - if the operation cannot be performed
    • shift

      default void shift(BlockVector3 change) throws RegionOperationException
      Description copied from interface: Region
      Shift the region.
      Specified by:
      shift in interface Region
      Parameters:
      change - the change
      Throws:
      RegionOperationException - if the operation cannot be performed
    • contains

      default boolean contains(BlockVector3 position)
      Description copied from interface: Region
      Returns true based on whether the region contains the point.
      Specified by:
      contains in interface Region
      Parameters:
      position - the position
      Returns:
      true if contained
    • getChunks

      default Set<BlockVector2> getChunks()
      Description copied from interface: Region
      Get a list of chunks.
      Specified by:
      getChunks in interface Region
      Returns:
      a list of chunk coordinates
    • getChunkCubes

      default Set<BlockVector3> getChunkCubes()
      Description copied from interface: Region
      Return a list of 16*16*16 chunks in a region.
      Specified by:
      getChunkCubes in interface Region
      Returns:
      the chunk cubes this region overlaps with
    • getWorld

      @Nullable default World getWorld()
      Description copied from interface: Region
      Sets the world that the selection is in.
      Specified by:
      getWorld in interface Region
      Returns:
      the world, or null
    • setWorld

      default void setWorld(@Nullable World world)
      Description copied from interface: Region
      Sets the world that the selection is in.
      Specified by:
      setWorld in interface Region
      Parameters:
      world - the world, which may be null
    • clone

      default Region clone()
      Description copied from interface: Region
      Make a clone of the region.
      Specified by:
      clone in interface Region
      Returns:
      a cloned version
    • polygonize

      default List<BlockVector2> polygonize(int maxPoints)
      Description copied from interface: Region
      Polygonizes a cross-section or a 2D projection of the region orthogonal to the Y axis.
      Specified by:
      polygonize in interface Region
      Parameters:
      maxPoints - maximum number of points to generate. -1 for no limit.
      Returns:
      the points.