summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/BlockEntity.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-10 16:16:05 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-10 16:16:05 +0200
commitdd4b4150511f71c3d5a1433323d36268859f2c47 (patch)
treed98d6473566d0f0132a7afd72631abb69f68b942 /src/BlockEntities/BlockEntity.h
parentMerge pull request #2162 from lkolbly/master (diff)
downloadcuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.gz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.bz2
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.lz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.xz
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.tar.zst
cuberite-dd4b4150511f71c3d5a1433323d36268859f2c47.zip
Diffstat (limited to '')
-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 7b5b6920f..785ee978a 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; }