diff options
author | Samuel Barney <samjbarney@gmail.com> | 2014-08-20 16:42:58 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2014-08-20 16:42:58 +0200 |
commit | 54cb27f8197f6e8c441644ea0182feda6ae78a09 (patch) | |
tree | 33a63ee8db20c142d2cccd4b8ace3d4ff65fa88e /src/ItemGrid.h | |
parent | Added new component files. Updated the CMakeLists files (diff) | |
parent | Merge pull request #1335 from mc-server/CodeFixes (diff) | |
download | cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar.gz cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar.bz2 cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar.lz cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar.xz cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.tar.zst cuberite-54cb27f8197f6e8c441644ea0182feda6ae78a09.zip |
Diffstat (limited to 'src/ItemGrid.h')
-rw-r--r-- | src/ItemGrid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ItemGrid.h b/src/ItemGrid.h index c34d5e9e2..8d6544792 100644 --- a/src/ItemGrid.h +++ b/src/ItemGrid.h @@ -96,6 +96,10 @@ public: Returns the total number of items that fit. */ int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1); + + /** Removes the specified item from the grid, as many as possible, up to a_ItemStack.m_ItemCount. + Returns the number of items that were 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. |