Interface IChunk

All Superinterfaces:
IBlocks, IChunkGet, IChunkSet, InputExtent, ITileInput, OutputExtent, Trimable
All Known Subinterfaces:
IQueueChunk<T>
All Known Implementing Classes:
ChunkHolder, NullChunk

public interface IChunk extends Trimable, IChunkGet, IChunkSet
Represents a chunk in the queue IQueueExtent Used for getting and setting blocks / biomes / entities
  • Method Details

    • init

      default <V extends IChunk> void init(IQueueExtent<V> extent, int x, int z)
      Initialize at the location (allows for reuse) - It's expected initialization will clear any set fields
    • getX

      int getX()
      Get chunkX
      Returns:
      the x coordinate of the chunk
    • getZ

      int getZ()
      Get chunkZ
      Returns:
      the z coordinate of the chunk
    • getChunkBlockCoord

      default BlockVector3 getChunkBlockCoord()
      Return the minimum block coordinate of the chunk
      Returns:
      BlockVector3 of minimum block coordinate
      Since:
      2.8.4
    • getRoot

      default IChunk getRoot()
      If the chunk is a delegate, returns its parent's root
      Returns:
      root IChunk
    • filterBlocks

      void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full)
      Filter through all the blocks in the chunk
      Parameters:
      filter - the filter
      block - The filter block
      region - The region allowed to filter (maybe null)
    • reset

      default IChunk reset()
      Specified by:
      reset in interface IBlocks
      Specified by:
      reset in interface IChunkSet