| 1947 | |
| 1948 | |
| 1949 | bool 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 |
no test coverage detected