summaryrefslogtreecommitdiffstats
path: root/src/Inventory.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-18 23:51:36 +0200
committermadmaxoft <github@xoft.cz>2014-07-18 23:51:36 +0200
commit76b33970b05c6ee8c018198904f8054b23df44d7 (patch)
tree1edf71ddb36ffa03abf97518005186f462bfee11 /src/Inventory.h
parentMerge branch 'Entities' (diff)
parentDebuggers: Optimized and commented the /rmitem handler. (diff)
downloadcuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.gz
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.bz2
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.lz
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.xz
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.zst
cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.zip
Diffstat (limited to 'src/Inventory.h')
-rw-r--r--src/Inventory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Inventory.h b/src/Inventory.h
index e25fc4a8a..5175afd14 100644
--- a/src/Inventory.h
+++ b/src/Inventory.h
@@ -86,6 +86,10 @@ public:
*/
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks, bool a_tryToFillEquippedFirst);
+ /** Removes the specified item from the inventory, as many as possible, up to a_ItemStack.m_ItemCount.
+ Returns the number of items that were removed. */
+ int RemoveItem(const cItem & a_ItemStack);
+
/** Removes one item out of the currently equipped item stack, returns true if successful, false if empty-handed */
bool RemoveOneEquippedItem(void);