summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-12-21 15:31:44 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-12-22 00:21:01 +0100
commitf3ec768dfbad65e269da9c43f1ca982d0fb7234d (patch)
tree5b82daad6716a8af8779565fb9671502d415668d /src/Chunk.h
parentPrepare for 1.15+ (#4856) (diff)
downloadcuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.gz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.bz2
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.lz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.xz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.zst
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index bfd860b1c..28f7b0bec 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -111,7 +111,7 @@ public:
void MarkLoadFailed(void);
/** Gets all chunk data, calls the a_Callback's methods for each data type */
- void GetAllData(cChunkDataCallback & a_Callback);
+ void GetAllData(cChunkDataCallback & a_Callback) const;
/** Sets all chunk data as either loaded from the storage or generated.
BlockLight and BlockSkyLight are optional, if not present, chunk will be marked as unlighted.
@@ -172,11 +172,7 @@ public:
GetBlockTypeMeta({ a_RelX, a_RelY, a_RelZ }, a_BlockType, a_BlockMeta);
}
- void GetBlockInfo(Vector3i a_RelPos, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight);
- void GetBlockInfo(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight)
- {
- GetBlockInfo({ a_RelX, a_RelY, a_RelZ }, a_BlockType, a_Meta, a_SkyLight, a_BlockLight);
- }
+ void GetBlockInfo(Vector3i a_RelPos, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight) const;
/** Convert absolute coordinates into relative coordinates.
Returns false on failure to obtain a valid chunk. Returns true otherwise.