LiveMap API
Loading...
Searching...
No Matches
livemap.data.ChunkLoader Class Reference

Public Member Functions

 ChunkLoader (ICoreServerAPI api, int chunkCacheSize=1000)
IEnumerable< ChunkPos > GetAllMapRegionPositions ()
IEnumerable< ChunkPos > GetAllMapChunkPositions ()
ServerMapRegion? GetMapRegion (ulong position)
ServerMapChunk? GetMapChunk (ulong position)
ServerChunk? GetChunk (ulong position)
void ClearCache ()
 Clears all caches. Should be called when world data changes (e.g., after world save).
void Dispose ()

Constructor & Destructor Documentation

◆ ChunkLoader()

livemap.data.ChunkLoader.ChunkLoader ( ICoreServerAPI api,
int chunkCacheSize = 1000 )
inline

Member Function Documentation

◆ ClearCache()

void livemap.data.ChunkLoader.ClearCache ( )
inline

Clears all caches. Should be called when world data changes (e.g., after world save).

◆ Dispose()

void livemap.data.ChunkLoader.Dispose ( )
inline

◆ GetAllMapChunkPositions()

IEnumerable< ChunkPos > livemap.data.ChunkLoader.GetAllMapChunkPositions ( )

◆ GetAllMapRegionPositions()

IEnumerable< ChunkPos > livemap.data.ChunkLoader.GetAllMapRegionPositions ( )
inline

◆ GetChunk()

ServerChunk? livemap.data.ChunkLoader.GetChunk ( ulong position)
inline

◆ GetMapChunk()

ServerMapChunk? livemap.data.ChunkLoader.GetMapChunk ( ulong position)
inline

◆ GetMapRegion()

ServerMapRegion? livemap.data.ChunkLoader.GetMapRegion ( ulong position)
inline

The documentation for this class was generated from the following file: