Class SingleRegionExtent

All Implemented Interfaces:
IBatchProcessor, Extent, InputExtent, OutputExtent, Serializable

public class SingleRegionExtent extends FaweRegionExtent
See Also:
  • Constructor Details

    • SingleRegionExtent

      public SingleRegionExtent(Extent extent, FaweLimit limit, Region region)
      Create a new instance.
      Parameters:
      extent - the extent
  • Method Details

    • contains

      public boolean contains(int x, int y, int z)
      Description copied from interface: Extent
      Returns true if the extent contains the given position
      Specified by:
      contains in interface Extent
      Specified by:
      contains in class FaweRegionExtent
      Parameters:
      x - position x
      y - position y
      z - position z
      Returns:
      if position is contained
    • contains

      public boolean contains(int x, int z)
      Specified by:
      contains in class FaweRegionExtent
    • getRegions

      public Collection<Region> getRegions()
      Specified by:
      getRegions in class FaweRegionExtent
    • processSet

      public IChunkSet processSet(IChunk chunk, IChunkGet get, IChunkSet set)
      Description copied from interface: IBatchProcessor
      Process a chunk that has been set.
    • postProcessSet

      public Future<?> postProcessSet(IChunk chunk, IChunkGet get, IChunkSet set)
      Description copied from interface: IBatchProcessor
      Post-process a chunk that has been edited. Set should NOT be modified here, changes will NOT be flushed to the world, but MAY be flushed to history. Defaults to nothing as most Processors will not use it. Post-processors that are not technically blocking should override this method to allow post-processors to become blocking if required.
    • postProcess

      public void postProcess(IChunk chunk, IChunkGet get, IChunkSet set)
      Description copied from interface: IBatchProcessor
      Post-process a chunk that has been edited. Set should NOT be modified here, changes will NOT be flushed to the world, but MAY be flushed to history. Defaults to nothing as most Processors will not use it. If the post-processor will run tasks asynchronously/not be blocking, use IBatchProcessor.postProcessSet(IChunk, IChunkGet, IChunkSet) to return a Future.
    • processGet

      public boolean processGet(int chunkX, int chunkZ)