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

Method GetNumChunks

src/ChunkMap.cpp:2609–2618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2607
2608
2609int cChunkMap::GetNumChunks(void)
2610{
2611 cCSLock Lock(m_CSLayers);
2612 int NumChunks = 0;
2613 for (cChunkLayerList::iterator itr = m_Layers.begin(); itr != m_Layers.end(); ++itr)
2614 {
2615 NumChunks += (*itr)->GetNumChunksLoaded();
2616 }
2617 return NumChunks;
2618}
2619
2620
2621

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
GetNumChunksLoadedMethod · 0.80

Tested by

no test coverage detected