diff options
author | Masy98 <masy@antheruscraft.de> | 2014-09-05 11:27:21 +0200 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-09-05 11:27:21 +0200 |
commit | 15bee41a3657498e0072007e24abec50aac2c8df (patch) | |
tree | 863ae0ba1fef38d5da79aeb357e955c52d838caa /src/Chunk.h | |
parent | Added new recipes! (diff) | |
parent | Merge pull request #1375 from mc-server/EntitiesInBox (diff) | |
download | cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar.gz cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar.bz2 cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar.lz cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar.xz cuberite-15bee41a3657498e0072007e24abec50aac2c8df.tar.zst cuberite-15bee41a3657498e0072007e24abec50aac2c8df.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Chunk.h b/src/Chunk.h index e5de22e3b..0f4928b90 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -67,7 +67,7 @@ class cChunk : { public: cChunk( - int a_ChunkX, int a_ChunkY, int a_ChunkZ, // Chunk coords + int a_ChunkX, int a_ChunkZ, // Chunk coords cChunkMap * a_ChunkMap, cWorld * a_World, // Parent objects cChunk * a_NeighborXM, cChunk * a_NeighborXP, cChunk * a_NeighborZM, cChunk * a_NeighborZP, // Neighbor chunks cAllocationPool<cChunkData::sChunkSection> & a_Pool @@ -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 |