summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 18:30:17 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 18:30:17 +0200
commitbf13084f1fa8560d8eda8551b74755b543c1fdd4 (patch)
treebed9baa364fdea24501049216c8867c897784242 /source/cWorld.h
parentPatch from STR_Warrior, OreNest counts adjustment (diff)
downloadcuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.gz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.bz2
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.lz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.xz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.zst
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.zip
Diffstat (limited to 'source/cWorld.h')
-rw-r--r--source/cWorld.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index f885bfd35..fd594f22b 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -209,6 +209,9 @@ public:
void QueueLightChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = NULL);
bool IsChunkLighted(int a_ChunkX, int a_ChunkZ);
+
+ /// Calls the callback for each chunk in the coords specified (all cords are inclusive). Returns true if all chunks have been processed successfully
+ bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback);
void SetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockMeta ); //tolua_export
void FastSetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockMeta ); //tolua_export