Interface IChunkCache<T>

All Superinterfaces:
Trimable
All Known Subinterfaces:
SimpleWorld, World
All Known Implementing Classes:
AbstractWorld, ChunkCache, NullWorld, WorldWrapper

public interface IChunkCache<T> extends Trimable
IGetBlocks may be cached by the WorldChunkCache so that it can be used between multiple IQueueExtents - avoids conversion between a palette and raw data on every block get
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int chunkX, int chunkZ)
     
    default boolean
    trim(boolean aggressive)
    Trims the object, reducing its memory footprint.

    Methods inherited from interface com.fastasyncworldedit.core.queue.Trimable

    recycle
  • Method Details

    • get

      T get(int chunkX, int chunkZ)
    • trim

      default boolean trim(boolean aggressive)
      Description copied from interface: Trimable
      Trims the object, reducing its memory footprint.
      Specified by:
      trim in interface Trimable
      Parameters:
      aggressive - if trimming should be aggressive e.g., Not returning early when the first element cannot be trimmed
      Returns:
      if this object is empty at the end of the trim, and can therefore be deleted