diff options
author | Mattes D <github@xoft.cz> | 2016-07-06 12:39:56 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-07-18 22:11:40 +0200 |
commit | f8e1df2476074a86e4dc25204c2250a6111245de (patch) | |
tree | 863ea680019654b87a86b98f26854d90ad53826e /src/ItemGrid.h | |
parent | Vector3: Removed useless NormalizeCopy overload from LuaAPI. (diff) | |
download | cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar.gz cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar.bz2 cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar.lz cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar.xz cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.tar.zst cuberite-f8e1df2476074a86e4dc25204c2250a6111245de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ItemGrid.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ItemGrid.h b/src/ItemGrid.h index 090649c44..46e200b9c 100644 --- a/src/ItemGrid.h +++ b/src/ItemGrid.h @@ -78,10 +78,9 @@ public: /** Adds as many items out of a_ItemStack as can fit. If a_AllowNewStacks is set to false, only existing stacks can be topped up; - if a_AllowNewStacks is set to true, empty slots can be used for the rest. - If a_PrioritarySlot is set to a positive value, then the corresponding slot will be used in - first (if empty or compatible with added items) - if a_PrioritarySlot is set to -1, regular order apply + If a_AllowNewStacks is set to true, empty slots can be used for the rest. + If a_PrioritarySlot is set to a positive value, then the corresponding slot will be used first (if empty or compatible with added items). + If a_PrioritarySlot is set to -1, regular order applies. Returns the number of items that fit. */ int AddItem(cItem & a_ItemStack, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1); @@ -89,10 +88,9 @@ public: /** Same as AddItem, but works on an entire list of item stacks. The a_ItemStackList is modified to reflect the leftover items. If a_AllowNewStacks is set to false, only existing stacks can be topped up; - if a_AllowNewStacks is set to true, empty slots can be used for the rest. - If a_PrioritarySlot is set to a positive value, then the corresponding slot will be used in - first (if empty or compatible with added items) - if a_PrioritarySlot is set to -1, regular order apply + If a_AllowNewStacks is set to true, empty slots can be used for the rest. + If a_PrioritarySlot is set to a positive value, then the corresponding slot will be used first (if empty or compatible with added items). + If a_PrioritarySlot is set to -1, regular order applies. Returns the total number of items that fit. */ int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1); |