summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-06 11:55:12 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-06 11:55:12 +0200
commitf36acb683594daff5af3971dcbe3c3a171628b78 (patch)
treea8d1d3d5c0eeff2e6fbae9ac9d2dc34699a660ca /src/BlockEntities/BlockEntity.h
parentMerge pull request #2205 from birkett/master (diff)
parentFix iterating (diff)
downloadcuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar.gz
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar.bz2
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar.lz
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar.xz
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.tar.zst
cuberite-f36acb683594daff5af3971dcbe3c3a171628b78.zip
Diffstat (limited to 'src/BlockEntities/BlockEntity.h')
-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; }