summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-03 23:42:26 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-05 17:34:29 +0200
commit7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f (patch)
tree22b1673c30752560887116b3623db0bd17896a5e /src/UI/SlotArea.h
parentAdd MC|ItemName plugin message. (diff)
downloadcuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.gz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.bz2
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.lz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.xz
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.tar.zst
cuberite-7fe6e40bf7d40347f7f452ea2b7c353a5bc8073f.zip
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r--src/UI/SlotArea.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index 01dcb88ab..4f273ec65 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -274,12 +274,19 @@ public:
// cSlotAreaTemporary overrides:
virtual void OnPlayerRemoved(cPlayer & a_Player) override;
-protected:
+ bool CanTakeResultItem(cPlayer & a_Player);
+
+ void OnTakeResult(cPlayer & a_Player, cItem a_ResultItem);
+
/** Handles a click in the item slot. */
void UpdateResult(cPlayer & a_Player);
+protected:
/** The maximum cost of repairing/renaming in the anvil. */
int m_MaximumCost;
+
+ /** The stack size of the second item where was used for repair */
+ char m_StackSizeToBeUsedInRepair;
} ;