diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 17:29:43 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 17:29:43 +0200 |
commit | 84a7e14e86b0bb4025e3c93d6a5d09ee8240a531 (patch) | |
tree | 05faa280268a55cadda98e8d6a3526078c1a7653 /source/BlockEntity.h | |
parent | Implemented droppers (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/BlockEntity.h | 3 |
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; |