diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-10 17:07:46 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-10 17:07:46 +0100 |
commit | 0cce0478d846114f49c4b8fe201aee7a1bb06b22 (patch) | |
tree | bb0bce87ded48eccd1bb913153b7e4f935462326 /src/BlockArea.h | |
parent | Merge pull request #770 from xdot/master (diff) | |
download | cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.gz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.bz2 cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.lz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.xz cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.tar.zst cuberite-0cce0478d846114f49c4b8fe201aee7a1bb06b22.zip |
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r-- | src/BlockArea.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index 0703f195e..d89c9b372 100644 --- a/src/BlockArea.h +++ b/src/BlockArea.h @@ -209,6 +209,8 @@ public: void SetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_BlockLight); void SetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_BlockSkyLight); void SetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_BlockSkyLight); + void SetOffset (int a_OffsetX, int a_OffsetY, int a_OffsetZ); + void SetOffset (Vector3i a_Offset); // Getters: BLOCKTYPE GetRelBlockType (int a_RelX, int a_RelY, int a_RelZ) const; @@ -219,6 +221,7 @@ public: NIBBLETYPE GetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ) const; NIBBLETYPE GetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ) const; NIBBLETYPE GetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ) const; + Vector3i GetOffset (void) const {return m_Offset;} void SetBlockTypeMeta (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); void SetRelBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); @@ -299,6 +302,8 @@ protected: int m_SizeY; int m_SizeZ; + Vector3i m_Offset; + BLOCKTYPE * m_BlockTypes; NIBBLETYPE * m_BlockMetas; // Each meta is stored as a separate byte for faster access NIBBLETYPE * m_BlockLight; // Each light value is stored as a separate byte for faster access |