summaryrefslogtreecommitdiffstats
path: root/src/ItemGrid.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/ItemGrid.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/ItemGrid.h')
-rw-r--r--src/ItemGrid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ItemGrid.h b/src/ItemGrid.h
index c34d5e9e2..6731b0065 100644
--- a/src/ItemGrid.h
+++ b/src/ItemGrid.h
@@ -96,6 +96,9 @@ public:
Returns the total number of items that fit.
*/
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1);
+
+ /** 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);
/** Adds (or subtracts, if a_AddToCount is negative) to the count of items in the specified slot.
If the slot is empty, ignores the call.