summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-31 16:28:38 +0200
committertycho <work.tycho@gmail.com>2015-06-05 23:31:21 +0200
commitbfe52277b4a17c4a3a97bf479e20d7b5f0f068d2 (patch)
tree8039f30cb090e5e5aed4f26e257bf13338e7769e /src/BlockEntities
parentMoved Chunk Broadcasts over to the regular queue (diff)
downloadcuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar.gz
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar.bz2
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar.lz
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar.xz
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.tar.zst
cuberite-bfe52277b4a17c4a3a97bf479e20d7b5f0f068d2.zip
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/BlockEntity.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BlockEntities/BlockEntity.h b/src/BlockEntities/BlockEntity.h
index 85f75a523..71367efb6 100644
--- a/src/BlockEntities/BlockEntity.h
+++ b/src/BlockEntities/BlockEntity.h
@@ -85,6 +85,7 @@ public:
// tolua_begin
// Position, in absolute block coordinates:
+ Vector3i GetPos(void) const { return Vector3i{m_PosX, m_PosY, m_PosZ}; }
int GetPosX(void) const { return m_PosX; }
int GetPosY(void) const { return m_PosY; }
int GetPosZ(void) const { return m_PosZ; }