diff options
author | daniel0916 <theschokolps@gmail.com> | 2014-04-14 22:05:04 +0200 |
---|---|---|
committer | daniel0916 <theschokolps@gmail.com> | 2014-04-14 22:05:04 +0200 |
commit | b5401ec03ad74782129e6a68eac3e9c0ccb573e2 (patch) | |
tree | edc3028cdb2947559e3dcf069c80e9d5db2d315a /src/UI/SlotArea.h | |
parent | Removed Debug Message (diff) | |
download | cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar.gz cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar.bz2 cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar.lz cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar.xz cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.tar.zst cuberite-b5401ec03ad74782129e6a68eac3e9c0ccb573e2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h index a6af72273..431ad753c 100644 --- a/src/UI/SlotArea.h +++ b/src/UI/SlotArea.h @@ -66,6 +66,8 @@ public: /// If a_CollectFullStacks is false, slots with full stacks are skipped while collecting. /// Returns true if full stack has been collected in a_Dragging, false if there's space remaining to fill. virtual bool CollectItemsToHand(cItem & a_Dragging, cPlayer & a_Player, bool a_CollectFullStacks); + + virtual int GetItemPlaceCount(cItem & a_Item); protected: int m_NumSlots; @@ -263,6 +265,7 @@ public: // cSlotAreaTemporary overrides: virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override; virtual void OnPlayerRemoved(cPlayer & a_Player) override; + virtual int GetItemPlaceCount(cItem & a_Item) override; protected: /// Handles a click in the item slot. |