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

Method GetChunkData

src/ChunkMap.cpp:964–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962
963
964bool cChunkMap::GetChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataCallback & a_Callback)
965{
966 cCSLock Lock(m_CSLayers);
967 cChunkPtr Chunk = GetChunkNoGen(a_ChunkX, ZERO_CHUNK_Y, a_ChunkZ);
968 if ((Chunk == NULL) || !Chunk->IsValid())
969 {
970 return false;
971 }
972 Chunk->GetAllData(a_Callback);
973 return true;
974}
975
976
977

Callers

nothing calls this directly

Calls 2

GetAllDataMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected