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

      @org.jetbrains.annotations.Range(from=0L, to=15L) int getX()
      Get chunkX
      Returns:
      the x coordinate of the chunk
    • getZ

      @org.jetbrains.annotations.Range(from=0L, to=15L) int getZ()
      Get chunkZ
      Returns:
      the z coordinate of the chunk
    • 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