summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-04-24 20:41:25 +0200
committerHowaner <franzi.moos@googlemail.com>2014-04-24 20:41:25 +0200
commit9cbb3a339f98f1737ea78af7f40e1ae7d25027e8 (patch)
tree34544dccfab33203ed5aed209199ba99df1b207d /src/UI/SlotArea.h
parentUpdated docs for StringToEnchantmentID. (diff)
downloadcuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.gz
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.bz2
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.lz
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.xz
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.tar.zst
cuberite-9cbb3a339f98f1737ea78af7f40e1ae7d25027e8.zip
Diffstat (limited to '')
-rw-r--r--src/UI/SlotArea.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index bab1098bb..254722822 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -145,8 +145,13 @@ public:
{
}
- // Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.)
+ /** Distributing the stack is allowed only for compatible items (helmets into helmet slot etc.) */
virtual void DistributeStack(cItem & a_ItemStack, cPlayer & a_Player, bool a_ShouldApply, bool a_KeepEmptySlots) override;
+
+ /** Called when a player clicks in the window. Parameters taken from the click packet. */
+ virtual void Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a_ClickAction, const cItem & a_ClickedItem) override;
+
+ bool CanPlaceInSlot(int a_SlotNum, const cItem & a_Item);
} ;