summaryrefslogtreecommitdiffstats
path: root/source/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-27 09:19:13 +0100
committermadmaxoft <github@xoft.cz>2013-10-27 09:19:13 +0100
commit3fa03e854f02f8046ace97d184647c0594e3f23c (patch)
treed443281dea155650869a0b626e93d1164b5d2000 /source/Chunk.h
parentAuthenticator doesn't save the ini file. (diff)
downloadcuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar.gz
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar.bz2
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar.lz
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar.xz
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.tar.zst
cuberite-3fa03e854f02f8046ace97d184647c0594e3f23c.zip
Diffstat (limited to 'source/Chunk.h')
-rw-r--r--source/Chunk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h
index e709a4718..ab110c7cb 100644
--- a/source/Chunk.h
+++ b/source/Chunk.h
@@ -299,6 +299,8 @@ public:
inline NIBBLETYPE GetBlockLight(int a_RelX, int a_RelY, int a_RelZ) const {return cChunkDef::GetNibble(m_BlockLight, a_RelX, a_RelY, a_RelZ); }
inline NIBBLETYPE GetSkyLight (int a_RelX, int a_RelY, int a_RelZ) const {return cChunkDef::GetNibble(m_BlockSkyLight, a_RelX, a_RelY, a_RelZ); }
+ inline NIBBLETYPE GetBlockLight(int a_Idx) const {return cChunkDef::GetNibble(m_BlockLight, a_Idx); }
+ inline NIBBLETYPE GetSkyLight (int a_Idx) const {return cChunkDef::GetNibble(m_BlockSkyLight, a_Idx); }
/// Same as GetBlock(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success
bool UnboundedRelGetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) const;
@@ -315,6 +317,9 @@ public:
/// Same as GetBlockSkyLight(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success
bool UnboundedRelGetBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE & a_SkyLight) const;
+ /// Queries both BlockLight and SkyLight, relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success
+ bool UnboundedRelGetBlockLights(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE & a_BlockLight, NIBBLETYPE & a_SkyLight) const;
+
/// Same as SetBlock(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success
bool UnboundedRelSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);