diff options
author | Mattes D <github@xoft.cz> | 2014-03-12 07:54:10 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-12 07:54:10 +0100 |
commit | 79d6e7c4a4134b093489f50d648d2949f523f07f (patch) | |
tree | 876dd6bdf81818c5c4e7cde315f5e79bb93a996f /src/BlockArea.h | |
parent | Merge pull request #791 from mc-server/PieceGenerator (diff) | |
parent | APIDump: Updated WEOffset-related docs. (diff) | |
download | cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar.gz cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar.bz2 cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar.lz cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar.xz cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.tar.zst cuberite-79d6e7c4a4134b093489f50d648d2949f523f07f.zip |
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r-- | src/BlockArea.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index 0703f195e..31918ce8c 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 SetWEOffset (int a_OffsetX, int a_OffsetY, int a_OffsetZ); + void SetWEOffset (const 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; + const Vector3i & GetWEOffset (void) const {return m_WEOffset;} 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,10 @@ protected: int m_SizeY; int m_SizeZ; + /** An extra data value sometimes stored in the .schematic file. Used mainly by the WorldEdit plugin. + cBlockArea doesn't use this value in any way. */ + Vector3i m_WEOffset; + 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 |