diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 16:34:26 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 16:34:26 +0200 |
commit | b4522bf14e2552217611b578b1847298c0ed5ac5 (patch) | |
tree | d8f945cc5105ac623dc069ea8ac237bcf1992f2d /source/ItemGrid.h | |
parent | Alpha-sorted the block meta list (diff) | |
download | cuberite-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.h | 6 |
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);
|