diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-30 21:59:35 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-30 21:59:35 +0200 |
commit | 89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04 (patch) | |
tree | 7d22e13df345884785abbc167a4818235fd61e0a /src/UI/SlotArea.h | |
parent | Merged branch 'howaner/Options'. (diff) | |
download | cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar.gz cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar.bz2 cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar.lz cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar.xz cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.tar.zst cuberite-89b1bbdc5fca5a51df1a5dd18ce91f27cb667c04.zip |
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r-- | src/UI/SlotArea.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h index fa842bb81..9a96f2f3c 100644 --- a/src/UI/SlotArea.h +++ b/src/UI/SlotArea.h @@ -15,6 +15,7 @@ class cWindow; class cPlayer; +class cBeaconEntity; class cChestEntity; class cDropSpenserEntity; class cEnderChestEntity; @@ -314,6 +315,34 @@ protected: +class cSlotAreaBeacon : + public cSlotArea, + public cItemGrid::cListener +{ + typedef cSlotArea super; + +public: + cSlotAreaBeacon(cBeaconEntity * a_Beacon, cWindow & a_ParentWindow); + virtual ~cSlotAreaBeacon(); + + bool IsPlaceableItem(short a_ItemType); + + virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override; + virtual void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, bool a_ShouldApply, bool a_KeepEmptySlots) override; + virtual const cItem * GetSlot(int a_SlotNum, cPlayer & a_Player) const override; + virtual void SetSlot(int a_SlotNum, cPlayer & a_Player, const cItem & a_Item) override; + +protected: + cBeaconEntity * m_Beacon; + + // cItemGrid::cListener overrides: + virtual void OnSlotChanged(cItemGrid * a_ItemGrid, int a_SlotNum) override; +} ; + + + + + class cSlotAreaEnchanting : public cSlotAreaTemporary { |