diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 08:25:20 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 08:25:20 +0100 |
commit | af17faac45f8ecbfc3af64231b65d66872af3301 (patch) | |
tree | a8864aef4d4a9036249170602164927b9ca99d58 /source/BlockEntities/BlockEntity.h | |
parent | cProtocol add SendExperience() and debugging (diff) | |
parent | Merge pull request #349 from SamJBarney/master (diff) | |
download | cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.gz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.bz2 cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.lz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.xz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.zst cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.zip |
Diffstat (limited to 'source/BlockEntities/BlockEntity.h')
-rw-r--r-- | source/BlockEntities/BlockEntity.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/BlockEntities/BlockEntity.h b/source/BlockEntities/BlockEntity.h index ab7d7f5dc..6a6ffb448 100644 --- a/source/BlockEntities/BlockEntity.h +++ b/source/BlockEntities/BlockEntity.h @@ -49,6 +49,11 @@ public: // tolua_begin + /// Creates a new block entity for the specified block type + /// If a_World is valid, then the entity is created bound to that world + /// Returns NULL for unknown block types + static cBlockEntity * CreateByBlockType(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World = NULL); + // Position, in absolute block coordinates: int GetPosX(void) const { return m_PosX; } int GetPosY(void) const { return m_PosY; } |