diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 22:52:39 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-26 22:52:39 +0200 |
commit | edbc2790e31f27195835ef184a9d452bc83b2c56 (patch) | |
tree | 6d6904f240ad9e7d9f61ee99a9e6a18da4663a7c /source/ItemGrid.h | |
parent | Clarified documentation on the cItemGrid:RemoveItem() functions (diff) | |
download | cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.gz cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.bz2 cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.lz cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.xz cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.tar.zst cuberite-edbc2790e31f27195835ef184a9d452bc83b2c56.zip |
Diffstat (limited to 'source/ItemGrid.h')
-rw-r--r-- | source/ItemGrid.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/ItemGrid.h b/source/ItemGrid.h index 80ea17c8b..72b7d3b03 100644 --- a/source/ItemGrid.h +++ b/source/ItemGrid.h @@ -46,9 +46,6 @@ public: /// Converts slot number into XY coords; sets coords to -1 on invalid slot number. Exported in ManualBindings.cpp
void GetSlotCoords(int a_SlotNum, int & a_X, int & a_Y) const;
- cItem & GetSlot(int a_X, int a_Y); // TODO: This will be removed!
- cItem & GetSlot(int a_SlotNum); // TODO: This will be removed!
-
// tolua_begin
// Retrieve slots by coords or slot number; Logs warning and returns the first slot on invalid coords / slotnum
@@ -76,7 +73,7 @@ public: if a_AllowNewStacks is set to true, empty slots can be used for the rest
Returns the number of items that fit.
*/
- int AddItem(cItem & a_ItemStack, bool a_AllowNewStacks);
+ int AddItem(cItem & a_ItemStack, bool a_AllowNewStacks = true);
/** Same as AddItem, but works on an entire list of item stacks.
The a_ItemStackList is modified to reflect the leftover items.
@@ -84,7 +81,7 @@ public: if a_AllowNewStacks is set to true, empty slots can be used for the rest
Returns the total number of items that fit.
*/
- int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks);
+ int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true);
/** 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.
|