summaryrefslogtreecommitdiffstats
path: root/source/BlockEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 17:29:43 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 17:29:43 +0200
commit84a7e14e86b0bb4025e3c93d6a5d09ee8240a531 (patch)
tree05faa280268a55cadda98e8d6a3526078c1a7653 /source/BlockEntity.h
parentImplemented droppers (diff)
downloadcuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.gz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.bz2
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.lz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.xz
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.tar.zst
cuberite-84a7e14e86b0bb4025e3c93d6a5d09ee8240a531.zip
Diffstat (limited to 'source/BlockEntity.h')
-rw-r--r--source/BlockEntity.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/BlockEntity.h b/source/BlockEntity.h
index 0cc7f6077..05818437b 100644
--- a/source/BlockEntity.h
+++ b/source/BlockEntity.h
@@ -56,6 +56,9 @@ public:
cWorld * GetWorld(void) const {return m_World; }
+ int GetChunkX(void) const { return FAST_FLOOR_DIV(m_PosX, cChunkDef::Width); }
+ int GetChunkZ(void) const { return FAST_FLOOR_DIV(m_PosZ, cChunkDef::Width); }
+
// tolua_end
virtual void SaveToJson (Json::Value & a_Value) = 0;