summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-12 07:46:14 +0100
committermadmaxoft <github@xoft.cz>2014-03-12 07:46:14 +0100
commit950614da7e700b8847f0dcc0bac9d76367801a3f (patch)
treea5ca64ff0c42ce32ea96c513bc65c94c6bf7f7f6 /src/BlockArea.h
parentMerge branch 'master' into cBlockArea_Offset (diff)
downloadcuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar.gz
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar.bz2
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar.lz
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar.xz
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.tar.zst
cuberite-950614da7e700b8847f0dcc0bac9d76367801a3f.zip
Diffstat (limited to 'src/BlockArea.h')
-rw-r--r--src/BlockArea.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h
index 76424d02f..31918ce8c 100644
--- a/src/BlockArea.h
+++ b/src/BlockArea.h
@@ -209,8 +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 (const Vector3i & a_Offset);
+ 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;
@@ -221,7 +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 & GetOffset (void) const {return m_WEOffset;}
+ 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);
@@ -302,7 +302,8 @@ protected:
int m_SizeY;
int m_SizeZ;
- // Used for schematics that are created by the WorldEdit plugin. The offset is used for player-relative pasting.
+ /** 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;