summaryrefslogtreecommitdiffstats
path: root/src/BlockArea.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-12 07:54:10 +0100
committerMattes D <github@xoft.cz>2014-03-12 07:54:10 +0100
commit79d6e7c4a4134b093489f50d648d2949f523f07f (patch)
tree876dd6bdf81818c5c4e7cde315f5e79bb93a996f /src/BlockArea.cpp
parentMerge pull request #791 from mc-server/PieceGenerator (diff)
parentAPIDump: Updated WEOffset-related docs. (diff)
downloadcuberite-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.cpp19
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;