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.cpp | |
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.cpp')
-rw-r--r-- | src/BlockArea.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp index d07ef747a..406e18a3b 100644 --- a/src/BlockArea.cpp +++ b/src/BlockArea.cpp @@ -168,6 +168,7 @@ cBlockArea::cBlockArea(void) : m_SizeX(0), m_SizeY(0), m_SizeZ(0), + m_WEOffset(0, 0, 0), m_BlockTypes(NULL), m_BlockMetas(NULL), m_BlockLight(NULL), @@ -254,6 +255,24 @@ void cBlockArea::Create(int a_SizeX, int a_SizeY, int a_SizeZ, int a_DataTypes) +void cBlockArea::SetWEOffset(int a_OffsetX, int a_OffsetY, int a_OffsetZ) +{ + m_WEOffset.Set(a_OffsetX, a_OffsetY, a_OffsetZ); +} + + + + + +void cBlockArea::SetWEOffset(const Vector3i & a_Offset) +{ + m_WEOffset.Set(a_Offset.x, a_Offset.y, a_Offset.z); +} + + + + + void cBlockArea::SetOrigin(int a_OriginX, int a_OriginY, int a_OriginZ) { m_OriginX = a_OriginX; |