MCPcopy Create free account
hub / github.com/cuberite/cuberite / DoWithChunk

Method DoWithChunk

src/ChunkMap.cpp:773–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771
772
773bool cChunkMap::DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback)
774{
775 cCSLock Lock(m_CSLayers);
776 cChunkPtr Chunk = GetChunkNoLoad(a_ChunkX, ZERO_CHUNK_Y, a_ChunkZ);
777 if (Chunk == NULL)
778 {
779 return false;
780 }
781 return a_Callback.Item(Chunk);
782}
783
784
785

Callers

nothing calls this directly

Calls 1

ItemMethod · 0.45

Tested by

no test coverage detected