diff options
author | Mattes D <github@xoft.cz> | 2016-07-19 10:15:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 10:15:49 +0200 |
commit | c54691a3e578c0c33f0e196959a4c224883b1c93 (patch) | |
tree | bb258a4eb246e062e3ad9b3cfa2119411bb1d4ac /src/ItemGrid.h | |
parent | Fixes for boat entities (#3265) (diff) | |
parent | CMake: Silenced CMP0054 policy warning. (diff) | |
download | cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar.gz cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar.bz2 cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar.lz cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar.xz cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.tar.zst cuberite-c54691a3e578c0c33f0e196959a4c224883b1c93.zip |
Diffstat (limited to 'src/ItemGrid.h')
-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); |