diff options
author | Mattes D <github@xoft.cz> | 2014-09-04 22:25:19 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-04 22:25:19 +0200 |
commit | e9dda864eae043da5664a683ab08910c3081e571 (patch) | |
tree | 040923a3d26266e1ccbce3f3ee44079c511702b9 /src/Chunk.h | |
parent | Merge pull request #1371 from DayBr3ak/master (diff) | |
parent | Fixed compilation after chunk Y removal. (diff) | |
download | cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar.gz cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar.bz2 cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar.lz cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar.xz cuberite-e9dda864eae043da5664a683ab08910c3081e571.tar.zst cuberite-e9dda864eae043da5664a683ab08910c3081e571.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index 3b5d1254e..0f4928b90 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -216,6 +216,10 @@ public: /** Calls the callback for each entity; returns true if all entities processed, false if the callback aborted by returning true */ bool ForEachEntity(cEntityCallback & a_Callback); // Lua-accessible + /** 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. */ + bool ForEachEntityInBox(const cBoundingBox & a_Box, cEntityCallback & a_Callback); // Lua-accessible + /** 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. */ bool DoWithEntityByID(int a_EntityID, cEntityCallback & a_Callback, bool & a_CallbackResult); // Lua-accessible |