diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-07-13 15:43:48 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-07-13 15:43:48 +0200 |
commit | 41d016cf5bdae46d478559f50a48a86723db80f8 (patch) | |
tree | 445d6f414374399780df670c927039b68685933b /src/UI/Window.h | |
parent | Added basic ocelot behavior (#3829) (diff) | |
download | cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar.gz cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar.bz2 cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar.lz cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar.xz cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.tar.zst cuberite-41d016cf5bdae46d478559f50a48a86723db80f8.zip |
Diffstat (limited to 'src/UI/Window.h')
-rw-r--r-- | src/UI/Window.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/UI/Window.h b/src/UI/Window.h index e1b91ccc7..5bb90a75e 100644 --- a/src/UI/Window.h +++ b/src/UI/Window.h @@ -218,8 +218,12 @@ protected: /** Processes the entire action stored in the internal structures for inventory painting; distributes one item into each slot */ void OnRightPaintEnd(cPlayer & a_Player); - /** Distributes a_NumToEachSlot items into the slots specified in a_SlotNums; returns the total number of items distributed */ - int DistributeItemToSlots(cPlayer & a_Player, const cItem & a_Item, int a_NumToEachSlot, const cSlotNums & a_SlotNums); + /** Processes the entire action stored in the internal structures for inventory painting; distributes a full stack into each slot */ + void OnMiddlePaintEnd(cPlayer & a_Player); + + /** Distributes a_NumToEachSlot items into the slots specified in a_SlotNums; returns the total number of items distributed. + @param a_LimitItems if false, no checks are performed on a_Item.m_ItemCount. */ + int DistributeItemToSlots(cPlayer & a_Player, const cItem & a_Item, int a_NumToEachSlot, const cSlotNums & a_SlotNums, bool a_LimitItems = true); } ; // tolua_export |