summaryrefslogtreecommitdiffstats
path: root/source/ItemGrid.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 16:34:26 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-26 16:34:26 +0200
commitb4522bf14e2552217611b578b1847298c0ed5ac5 (patch)
treed8f945cc5105ac623dc069ea8ac237bcf1992f2d /source/ItemGrid.h
parentAlpha-sorted the block meta list (diff)
downloadcuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar.gz
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar.bz2
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar.lz
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar.xz
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.tar.zst
cuberite-b4522bf14e2552217611b578b1847298c0ed5ac5.zip
Diffstat (limited to '')
-rw-r--r--source/ItemGrid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ItemGrid.h b/source/ItemGrid.h
index 22d64f076..82898537c 100644
--- a/source/ItemGrid.h
+++ b/source/ItemGrid.h
@@ -98,6 +98,12 @@ public:
*/
int ChangeSlotCount(int a_X, int a_Y, int a_AddToCount);
+ /// Removes one item from the specified slot, and returns it. If the slot was empty, returns an empty item
+ cItem RemoveOneItem(int a_SlotNum);
+
+ /// Removes one item from the specified slot, and returns it. If the slot was empty, returns an empty item
+ cItem RemoveOneItem(int a_X, int a_Y);
+
/// Returns the number of items of type a_Item that are stored
int HowManyItems(const cItem & a_Item);