diff options
author | Mattes D <github@xoft.cz> | 2017-06-24 11:58:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-24 11:58:06 +0200 |
commit | fe4253834919d6c742c59c701d3d5ce8285f4504 (patch) | |
tree | c201ca7a02344029679d4addffb695a3d20c4bec /src/BlockEntities/BlockEntity.h | |
parent | Load entities from old and new names (diff) | |
download | cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar.gz cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar.bz2 cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar.lz cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar.xz cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.tar.zst cuberite-fe4253834919d6c742c59c701d3d5ce8285f4504.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/BlockEntity.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/BlockEntities/BlockEntity.h b/src/BlockEntities/BlockEntity.h index 6c69e8260..5b7184775 100644 --- a/src/BlockEntities/BlockEntity.h +++ b/src/BlockEntities/BlockEntity.h @@ -64,6 +64,14 @@ public: m_World = a_World; } + /** Updates the internally stored position. + Note that this should not ever be used for world-contained block entities, it is meant only for when BEs in a cBlockArea are manipulated. + Asserts when the block entity is assigned to a world. */ + void SetPos(int a_NewBlockX, int a_NewBlockY, int a_NewBlockZ); + + /** Returns true if the specified blocktype is supposed to have an associated block entity. */ + static bool IsBlockEntityBlockType(BLOCKTYPE a_BlockType); + /** 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 nullptr for unknown block types. */ |