diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-16 10:35:07 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-16 10:35:07 +0200 |
commit | ada984facf47465b7a081eaf75d5541110c12f60 (patch) | |
tree | ebf09e32018e76a20df35e49965e15f8235cd6e2 /source/cChunk.h | |
parent | Lua binding for cVine fixed (diff) | |
download | cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar.gz cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar.bz2 cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar.lz cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar.xz cuberite-ada984facf47465b7a081eaf75d5541110c12f60.tar.zst cuberite-ada984facf47465b7a081eaf75d5541110c12f60.zip |
Diffstat (limited to 'source/cChunk.h')
-rw-r--r-- | source/cChunk.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cChunk.h b/source/cChunk.h index e24990982..7ebb37e43 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -40,7 +40,7 @@ class cPlayer; class cChunkMap; typedef std::list<cClientHandle *> cClientHandleList; - +typedef cItemCallback<cEntity> cEntityCallback; @@ -143,6 +143,9 @@ public: void AddEntity( cEntity * a_Entity); void RemoveEntity( cEntity * a_Entity); + /// 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 + void UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z); // [x, y, z] in world block coords void CalculateLighting(); // Recalculate right now |