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

Method ForEachEntity

src/ChunkMap.cpp:1705–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703
1704
1705bool cChunkMap::ForEachEntity(cEntityCallback & a_Callback)
1706{
1707 cCSLock Lock(m_CSLayers);
1708 for (cChunkLayerList::const_iterator itr = m_Layers.begin(); itr != m_Layers.end(); ++itr)
1709 {
1710 if (!(*itr)->ForEachEntity(a_Callback))
1711 {
1712 return false;
1713 }
1714 }
1715 return true;
1716}
1717
1718
1719

Callers 1

ForEachEntityInChunkMethod · 0.45

Calls 3

beginMethod · 0.80
endMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected