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

Method ForEachBlockEntity

src/Chunk.cpp:1949–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1947
1948
1949bool cChunk::ForEachBlockEntity(cBlockEntityCallback & a_Callback)
1950{
1951 // The blockentity list is locked by the parent chunkmap's CS
1952 for (cBlockEntityList::iterator itr = m_BlockEntities.begin(), itr2 = itr; itr != m_BlockEntities.end(); itr = itr2)
1953 {
1954 ++itr2;
1955 if (a_Callback.Item(*itr))
1956 {
1957 return false;
1958 }
1959 } // for itr - m_BlockEntitites[]
1960 return true;
1961}
1962
1963
1964

Callers 1

Calls 3

beginMethod · 0.80
endMethod · 0.80
ItemMethod · 0.45

Tested by

no test coverage detected