summaryrefslogtreecommitdiffstats
path: root/src/Inventory.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-18 23:11:59 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-18 23:11:59 +0200
commit51b91befbd26b630cd2cecaec081edd03edfb5f3 (patch)
tree7e34efa7eddbfc0041224b9bd15af415c099ab72 /src/Inventory.h
parentMonster fixes (diff)
downloadcuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar.gz
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar.bz2
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar.lz
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar.xz
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.tar.zst
cuberite-51b91befbd26b630cd2cecaec081edd03edfb5f3.zip
Diffstat (limited to 'src/Inventory.h')
-rw-r--r--src/Inventory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Inventory.h b/src/Inventory.h
index e25fc4a8a..6e32536b3 100644
--- a/src/Inventory.h
+++ b/src/Inventory.h
@@ -86,6 +86,9 @@ public:
*/
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks, bool a_tryToFillEquippedFirst);
+ /** Remove the specified item with the specified amount from the inventory. Returns the amount from the items were was 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);