java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.implementations.ChunkLoaderSpigot
All Implemented Interfaces:
IChunkLoader

@Singleton public class ChunkLoaderSpigot extends Object implements IChunkLoader
Implementation of IChunkLoader for the Spigot platform.
  • Constructor Details

    • ChunkLoaderSpigot

      @Inject public ChunkLoaderSpigot()
  • Method Details

    • getChunkCuboid

      public Cuboid getChunkCuboid(Cuboid cuboid)
    • checkChunks

      public IChunkLoader.ChunkLoadResult checkChunks(IWorld iWorld, Cuboid cuboid, IChunkLoader.ChunkLoadMode chunkLoadMode)
      Description copied from interface: IChunkLoader
      Checks if all chunks intersecting with a cuboid are loaded. For any unloaded chunks, an attempt to load them may be performed, as determined by the load mode.
      Specified by:
      checkChunks in interface IChunkLoader
      Parameters:
      iWorld - The world whose chunks to check.
      cuboid - The region to check. All chunks that are at least partially inside this cuboid will be checked.
      chunkLoadMode - The type of chunk loading to use if the chunk is not loaded.
      Returns:
      The result of the action.
    • checkChunk

      public IChunkLoader.ChunkLoadResult checkChunk(IWorld iWorld, IVector3D position, IChunkLoader.ChunkLoadMode chunkLoadMode)
      Description copied from interface: IChunkLoader
      Checks if the chunk a position exists in is loaded.
      Specified by:
      checkChunk in interface IChunkLoader
      Parameters:
      iWorld - The world whose chunks to check.
      position - The coordinates to check.
      chunkLoadMode - The type of chunk loading to use if the chunk is not loaded.
      Returns:
      The result of the action.