Class ChunkLoaderSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.implementations.ChunkLoaderSpigot
- All Implemented Interfaces:
IChunkLoader
Implementation of
IChunkLoader for the Spigot platform.-
Nested Class Summary
Nested classes/interfaces inherited from interface nl.pim16aap2.animatedarchitecture.core.api.IChunkLoader
IChunkLoader.ChunkLoadMode, IChunkLoader.ChunkLoadResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckChunk(IWorld iWorld, IVector3D position, IChunkLoader.ChunkLoadMode chunkLoadMode) Checks if the chunk a position exists in is loaded.checkChunks(IWorld iWorld, Cuboid cuboid, IChunkLoader.ChunkLoadMode chunkLoadMode) Checks if all chunks intersecting with a cuboid are loaded.getChunkCuboid(Cuboid cuboid)
-
Constructor Details
-
ChunkLoaderSpigot
@Inject public ChunkLoaderSpigot()
-
-
Method Details
-
getChunkCuboid
-
checkChunks
public IChunkLoader.ChunkLoadResult checkChunks(IWorld iWorld, Cuboid cuboid, IChunkLoader.ChunkLoadMode chunkLoadMode) Description copied from interface:IChunkLoaderChecks 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:
checkChunksin interfaceIChunkLoader- 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:IChunkLoaderChecks if the chunk a position exists in is loaded.- Specified by:
checkChunkin interfaceIChunkLoader- 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.
-