summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
committermadmaxoft <github@xoft.cz>2013-08-07 15:46:43 +0200
commit3d027a8928ee423ee6a475637752bd50a5f0d44c (patch)
tree82c6993605326422e188410dda8b897a28ce16ef /source/World.h
parentMerge pull request #47 from tonibm19/master (diff)
parentDebuggers plugin: added the "/spidey" command. (diff)
downloadcuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.gz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.bz2
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.lz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.xz
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.tar.zst
cuberite-3d027a8928ee423ee6a475637752bd50a5f0d44c.zip
Diffstat (limited to 'source/World.h')
-rw-r--r--source/World.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/World.h b/source/World.h
index 5720ae634..712064af6 100644
--- a/source/World.h
+++ b/source/World.h
@@ -404,6 +404,9 @@ public:
/// a_Player is using block entity at [x, y, z], handle that:
void UseBlockEntity(cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ) {m_ChunkMap->UseBlockEntity(a_Player, a_BlockX, a_BlockY, a_BlockZ); }
+
+ /// Calls the callback for the chunk specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback
+ bool DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback);
void GrowTree (int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
void GrowTreeFromSapling(int a_BlockX, int a_BlockY, int a_BlockZ, char a_SaplingMeta); // tolua_export