diff options
author | Mattes D <github@xoft.cz> | 2019-09-24 14:20:50 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-24 17:38:59 +0200 |
commit | 66e73a2d682f02224a2c84319f6db03964ecbac2 (patch) | |
tree | 681876b2622b843b1cb98cae4a875ac2d7771e75 /src/World.h | |
parent | Add ProtocolBlockTypePalette (#4391) (diff) | |
download | cuberite-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 'src/World.h')
-rw-r--r-- | src/World.h | 4 |
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); |