diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-23 17:06:27 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-09-25 11:07:01 +0200 |
commit | c53a0ba5f6f71da384a45a07685f8e25c3f91a29 (patch) | |
tree | bc8d016d1f5c5b5206b3b4f5580295bd91bb6099 /src/BlockEntities/MobHeadEntity.cpp | |
parent | Small cleanup in Jukeboxes (diff) | |
download | cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar.gz cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar.bz2 cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar.lz cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar.xz cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.tar.zst cuberite-c53a0ba5f6f71da384a45a07685f8e25c3f91a29.zip |
Diffstat (limited to 'src/BlockEntities/MobHeadEntity.cpp')
-rw-r--r-- | src/BlockEntities/MobHeadEntity.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BlockEntities/MobHeadEntity.cpp b/src/BlockEntities/MobHeadEntity.cpp index 36402f59f..eee6cf9c1 100644 --- a/src/BlockEntities/MobHeadEntity.cpp +++ b/src/BlockEntities/MobHeadEntity.cpp @@ -25,6 +25,15 @@ cMobHeadEntity::cMobHeadEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Ve +cItems cMobHeadEntity::ConvertToPickups() const +{ + return cItem(E_ITEM_HEAD, 1, static_cast<short>(m_Type)); +} + + + + + void cMobHeadEntity::CopyFrom(const cBlockEntity & a_Src) { Super::CopyFrom(a_Src); |