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

Method GetAllData

src/Chunk.cpp:239–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238
239void cChunk::GetAllData(cChunkDataCallback & a_Callback)
240{
241 a_Callback.HeightMap (&m_HeightMap);
242 a_Callback.BiomeData (&m_BiomeMap);
243 a_Callback.BlockTypes (m_BlockTypes);
244 a_Callback.BlockMeta (m_BlockMeta);
245 a_Callback.LightIsValid (m_IsLightValid);
246 a_Callback.BlockLight (m_BlockLight);
247 a_Callback.BlockSkyLight(m_BlockSkyLight);
248
249 for (cEntityList::iterator itr = m_Entities.begin(); itr != m_Entities.end(); ++itr)
250 {
251 a_Callback.Entity(*itr);
252 }
253
254 for (cBlockEntityList::iterator itr = m_BlockEntities.begin(); itr != m_BlockEntities.end(); ++itr)
255 {
256 a_Callback.BlockEntity(*itr);
257 }
258}
259
260
261

Callers 2

GetChunkDataMethod · 0.80
ForEachChunkInRectMethod · 0.80

Calls 11

HeightMapMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
BiomeDataMethod · 0.45
BlockTypesMethod · 0.45
BlockMetaMethod · 0.45
LightIsValidMethod · 0.45
BlockLightMethod · 0.45
BlockSkyLightMethod · 0.45
EntityMethod · 0.45
BlockEntityMethod · 0.45

Tested by

no test coverage detected