summaryrefslogtreecommitdiffstats
path: root/source/cBlockEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-23 23:20:32 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-04-23 23:20:32 +0200
commit9cb88728511c314695731d92cb4ab16c8e3b051e (patch)
tree6503c19dec45a7dc39377de39a1ff625ea321fbf /source/cBlockEntity.h
parentLapis gets generated (thanks, Fordship) (diff)
downloadcuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.gz
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.bz2
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.lz
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.xz
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.tar.zst
cuberite-9cb88728511c314695731d92cb4ab16c8e3b051e.zip
Diffstat (limited to '')
-rw-r--r--source/cBlockEntity.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/cBlockEntity.h b/source/cBlockEntity.h
index 3f0190c77..8a9e51f56 100644
--- a/source/cBlockEntity.h
+++ b/source/cBlockEntity.h
@@ -34,10 +34,10 @@ class cPacket;
class cBlockEntity
{
protected:
- cBlockEntity(ENUM_BLOCK_ID a_BlockType, int a_X, int a_Y, int a_Z, cWorld * a_World)
- : m_PosX( a_X )
- , m_PosY( a_Y )
- , m_PosZ( a_Z )
+ cBlockEntity(ENUM_BLOCK_ID a_BlockType, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World)
+ : m_PosX( a_BlockX )
+ , m_PosY( a_BlockY )
+ , m_PosZ( a_BlockZ )
, m_BlockType( a_BlockType )
, m_World( a_World )
{}
@@ -45,6 +45,7 @@ public:
virtual ~cBlockEntity() {};
virtual void Destroy() {};
+ // Position, in absolute block coordinates:
int GetPosX() { return m_PosX; }
int GetPosY() { return m_PosY; }
int GetPosZ() { return m_PosZ; }
@@ -78,7 +79,7 @@ public:
virtual cPacket * GetPacket(void) {return NULL; }
protected:
- int m_PosX; // Position in block coordinates
+ int m_PosX; // Position in absolute block coordinates
int m_PosY;
int m_PosZ;