summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-24 14:20:50 +0200
committerMattes D <github@xoft.cz>2019-09-24 17:38:59 +0200
commit66e73a2d682f02224a2c84319f6db03964ecbac2 (patch)
tree681876b2622b843b1cb98cae4a875ac2d7771e75 /src/World.h
parentAdd ProtocolBlockTypePalette (#4391) (diff)
downloadcuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar.gz
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar.bz2
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar.lz
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar.xz
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.tar.zst
cuberite-66e73a2d682f02224a2c84319f6db03964ecbac2.zip
Diffstat (limited to '')
-rw-r--r--src/World.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index 26e108e80..3ffbfecf0 100644
--- a/src/World.h
+++ b/src/World.h
@@ -234,7 +234,9 @@ public:
const cChunkDef::BlockNibbles & a_SkyLight
);
- bool GetChunkData (int a_ChunkX, int a_ChunkZ, cChunkDataCallback & a_Callback);
+ /** Calls the callback with the chunk's data, if available (with ChunkCS locked).
+ Returns true if the chunk was reported successfully, false if not (chunk not present or callback failed). */
+ bool GetChunkData(cChunkCoords a_Coords, cChunkDataCallback & a_Callback) const;
/** Gets the chunk's blocks, only the block types */
bool GetChunkBlockTypes(int a_ChunkX, int a_ChunkZ, BLOCKTYPE * a_BlockTypes);