summaryrefslogtreecommitdiffstats
path: root/src/ItemGrid.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-19Fixed minor style issues.Mattes D1-1/+1
2014-10-16Changed i variable to jSTRWarrior1-3/+10
The server wasn't going over all the items before.
2014-10-15Fixed possible crashSTRWarrior1-1/+8
It could crash if MinAmount - MaxAmount was 0 because it would execute (Number % 0)
2014-10-15The code now prevents conflicting enchantments.STRWarrior1-0/+1
2014-10-15Adding enchantments directly instead of first getting the name of it.STRWarrior1-1/+1
2014-10-15Renamed the counter to 'j'STRWarrior1-1/+1
2014-10-15Returned cFastRandom and cEnchantment:GetRandomEnchantmentFromVector to beforeSTRWarrior1-1/+1
Added cEnchantment:GenerateEnchantmentFromVector that allows to get the same enchantments over and over.
2014-10-15Enchanted books generate in MineShafts chestsSTRWarrior1-1/+14
2014-07-18Added RemoveItem() function to the player inventory.Howaner1-0/+33
2014-07-18Items should first added to the first slot, not the latest.Howaner1-3/+3
2014-06-19Nullify deleted pointers.archshift1-0/+1
2014-02-12Changed inheritance a bitTiger Wang1-0/+7
* cBlockEntityWithItems now inherits from cBlockEntityWindowOwner
2014-01-16Removed obsoleted functionsTiger Wang1-4/+4
2013-12-22Fixed signedness warning in cItemGrid.madmaxoft1-3/+3
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-11Added an AllowEmptyStacks param to cItemGrid::HowManyCanFit().madmaxoft1-2/+5
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-662/+662
2013-07-26cItemGrid: ChangeSlotCount() now returns -1 if invalid SlotNummadmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1684 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-03Empty buckets replace fluid buckets on use and vice versa (patch contributed by Mgueydan)madmaxoft1-12/+40
Fixes FS #277. API change: added an optional parameter to cItemGrid:AddItem(), cItemGrid:AddItems(), cInventory:AddItem() and cInventory:AddItems() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1643 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.madmaxoft@gmail.com1-3/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1587 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13cItemGrid: Added IsSlotEmpty() functionsmadmaxoft@gmail.com1-0/+25
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04ItemGrid: fixed changing item count when ToRemove == CurrentCountmadmaxoft@gmail.com1-1/+1
Fixes FS #380 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1545 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26Fixed cItemGrid API, no more changeable GetSlot().madmaxoft@gmail.com1-25/+0
Also fixed possible water and lava duplication glitches in the dispenser. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1520 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26ItemGrid: Added the RemoveOneItem() functionmadmaxoft@gmail.com1-0/+47
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25cChestEntity and cDispenserEntity now inherit from a common ancestor, cBlockEntityWithItemsmadmaxoft@gmail.com1-0/+41
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1507 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24Slight cleanup in the cInventory / cItemGrid APImadmaxoft@gmail.com1-0/+18
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1504 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com1-14/+189
This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-10ItemGrid: Renamed all Item to Slot - better and consistent namingmadmaxoft@gmail.com1-40/+40
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1381 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-10Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid.madmaxoft@gmail.com1-0/+349
http://forum.mc-server.org/showthread.php?tid=831 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1380 0a769ca7-a7f5-676a-18bf-c427514a06d6