summaryrefslogtreecommitdiffstats
path: root/src/ChunkData.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2018-02-04 23:15:31 +0100
committerGitHub <noreply@github.com>2018-02-04 23:15:31 +0100
commit2df14a04962037b93352c2fc53349af54ab3b14d (patch)
tree8fe7096d0c5dd492fc98e9534f9fcd53c41f767a /src/ChunkData.h
parentOcelots don't take fall damage (#4171) (diff)
downloadcuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar.gz
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar.bz2
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar.lz
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar.xz
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.tar.zst
cuberite-2df14a04962037b93352c2fc53349af54ab3b14d.zip
Diffstat (limited to 'src/ChunkData.h')
-rw-r--r--src/ChunkData.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ChunkData.h b/src/ChunkData.h
index 6bc2b5366..95a38b194 100644
--- a/src/ChunkData.h
+++ b/src/ChunkData.h
@@ -48,15 +48,15 @@ public:
/** Move assign from another cChunkData */
void Assign(cChunkData && a_Other);
- BLOCKTYPE GetBlock(int a_X, int a_Y, int a_Z) const;
- void SetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Block);
+ BLOCKTYPE GetBlock(Vector3i a_RelPos) const;
+ void SetBlock(Vector3i a_RelPos, BLOCKTYPE a_Block);
- NIBBLETYPE GetMeta(int a_RelX, int a_RelY, int a_RelZ) const;
- bool SetMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_Nibble);
+ NIBBLETYPE GetMeta(Vector3i a_RelPos) const;
+ bool SetMeta(Vector3i a_RelPos, NIBBLETYPE a_Nibble);
- NIBBLETYPE GetBlockLight(int a_RelX, int a_RelY, int a_RelZ) const;
+ NIBBLETYPE GetBlockLight(Vector3i a_RelPos) const;
- NIBBLETYPE GetSkyLight(int a_RelX, int a_RelY, int a_RelZ) const;
+ NIBBLETYPE GetSkyLight(Vector3i a_RelPos) const;
/** Return a pointer to the chunk section or nullptr if all air */
const sChunkSection * GetSection(size_t a_SectionNum) const;