diff options
author | madmaxoft <github@xoft.cz> | 2014-09-03 17:00:26 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-03 17:00:26 +0200 |
commit | a51c1e0b73a83cddcce865671ca30240393e458f (patch) | |
tree | 688e63c296f02e327b4ee2f9e117a172a6e2d85b /src/World.h | |
parent | cBoundingBox: Added accessors. (diff) | |
download | cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.gz cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.bz2 cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.lz cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.xz cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.tar.zst cuberite-a51c1e0b73a83cddcce865671ca30240393e458f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index 578c9682b..d4acb52d4 100644 --- a/src/World.h +++ b/src/World.h @@ -324,6 +324,11 @@ public: /** Calls the callback for each entity in the specified chunk; returns true if all entities processed, false if the callback aborted by returning true */ bool ForEachEntityInChunk(int a_ChunkX, int a_ChunkZ, cEntityCallback & a_Callback); // Exported in ManualBindings.cpp + /** Calls the callback for each entity that has a nonempty intersection with the specified boundingbox. + Returns true if all entities processed, false if the callback aborted by returning true. + If any chunk in the box is missing, ignores the entities in that chunk silently. */ + bool ForEachEntityInBox(const cBoundingBox & a_Box, cEntityCallback & a_Callback); // Exported in ManualBindings.cpp + /** Calls the callback if the entity with the specified ID is found, with the entity object as the callback param. Returns true if entity found and callback returned false. */ bool DoWithEntityByID(int a_UniqueID, cEntityCallback & a_Callback); // Exported in ManualBindings.cpp |