diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-14 19:28:06 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-14 19:28:06 +0200 |
commit | d8406c7c58b1da053bf0c4d3d73429cd931082a7 (patch) | |
tree | 278c47b5e597926b7b5fb714ee53b6848eeee17b /src/Items/SimplePlaceableItemHandler.h | |
parent | cWorld * -> cWorld (#4771) (diff) | |
download | cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar.gz cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar.bz2 cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar.lz cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar.xz cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.tar.zst cuberite-d8406c7c58b1da053bf0c4d3d73429cd931082a7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/SimplePlaceableItemHandler.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Items/SimplePlaceableItemHandler.h b/src/Items/SimplePlaceableItemHandler.h index 3908bc1f3..4400b9d0e 100644 --- a/src/Items/SimplePlaceableItemHandler.h +++ b/src/Items/SimplePlaceableItemHandler.h @@ -1,18 +1,22 @@ #pragma once - #include "ItemHandler.h" + + + + class cSimplePlaceableItemHandler : public cItemHandler { using Super = cItemHandler; public: + cSimplePlaceableItemHandler(int a_ItemType, BLOCKTYPE a_BlockType) : - Super(a_ItemType) + Super(a_ItemType), + m_BlockType(a_BlockType) { - m_BlockType = a_BlockType; } @@ -32,6 +36,7 @@ public: return true; } -protected: +private: + BLOCKTYPE m_BlockType; }; |