diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 15:22:44 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-15 15:22:44 +0100 |
commit | 1aebcea095e92572a39cb6555cba8517234b156c (patch) | |
tree | bbef44ce857aa49b2171ef43bedc2e802fbd5dd8 /source/cWorld.h | |
parent | Can now pass any argument to cWorld:ForEachPlayer in Lua! But I'm not even using it.. lol (diff) | |
download | cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.gz cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.bz2 cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.lz cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.xz cuberite-1aebcea095e92572a39cb6555cba8517234b156c.tar.zst cuberite-1aebcea095e92572a39cb6555cba8517234b156c.zip |
Diffstat (limited to 'source/cWorld.h')
-rw-r--r-- | source/cWorld.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cWorld.h b/source/cWorld.h index b8c1391fd..453b30a2a 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -67,6 +67,8 @@ public: void Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude = 0 );
+ void BroadcastToChunkOfBlock(int a_X, int a_Y, int a_Z, cPacket * a_Packet, cClientHandle * a_Exclude = NULL) {return m_ChunkMap->BroadcastToChunkOfBlock(a_X, a_Y, a_Z, a_Packet, a_Exclude); }
+
// MOTD
const AString & GetDescription(void) const {return m_Description; }
@@ -117,6 +119,9 @@ public: // TODO: This interface is dangerous!
cBlockEntity * GetBlockEntity( int a_X, int a_Y, int a_Z ); //tolua_export
+
+ /// a_Player is using block entity at [x, y, z], handle that:
+ void UseBlockEntity(cPlayer * a_Player, int a_X, int a_Y, int a_Z) {m_ChunkMap->UseBlockEntity(a_Player, a_X, a_Y, a_Z); }
void GrowTree( int a_X, int a_Y, int a_Z ); //tolua_export
|