summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-03 20:26:50 +0200
committermadmaxoft <github@xoft.cz>2013-08-03 20:26:50 +0200
commit4f26f11dc77ab032feec8c746fc6ddaa1ea44057 (patch)
tree19a62e06c11061af47273e8c9d159f38f5f2cc58 /source/World.h
parentRemoved the unused BlockY parameter from cChunkDef::BlockToChunk() (diff)
downloadcuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar.gz
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar.bz2
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar.lz
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar.xz
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.tar.zst
cuberite-4f26f11dc77ab032feec8c746fc6ddaa1ea44057.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 9de00ceec..52d634769 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