madmaxoft
d97b4463c6
Added an AllowEmptyStacks param to cItemGrid::HowManyCanFit().
2013-08-11 14:54:45 +02:00
Alexander Harkness
53e22b1185
Changed everyting to Unix line endings.
2013-07-29 12:13:03 +01:00
madmaxoft@gmail.com
fa66659456
cItemGrid: ChangeSlotCount() now returns -1 if invalid SlotNum
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1684 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-26 19:53:47 +00:00
madmaxoft
e27a5db409
Empty buckets replace fluid buckets on use and vice versa (patch contributed by Mgueydan)
...
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-07-03 13:56:11 +00:00
madmaxoft@gmail.com
03c6bb9f85
Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1587 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13 07:36:43 +00:00
madmaxoft@gmail.com
5c38a831bf
cItemGrid: Added IsSlotEmpty() functions
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13 06:13:56 +00:00
madmaxoft@gmail.com
5808128ca8
ItemGrid: fixed changing item count when ToRemove == CurrentCount
...
Fixes FS #380
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1545 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04 11:46:33 +00:00
madmaxoft@gmail.com
edbc2790e3
Fixed cItemGrid API, no more changeable GetSlot().
...
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-26 20:52:39 +00:00
madmaxoft@gmail.com
b4522bf14e
ItemGrid: Added the RemoveOneItem() function
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1513 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-26 14:34:26 +00:00
madmaxoft@gmail.com
c640e9346c
cChestEntity and cDispenserEntity now inherit from a common ancestor, cBlockEntityWithItems
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1507 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 11:59:13 +00:00
madmaxoft@gmail.com
90e0656c75
Slight cleanup in the cInventory / cItemGrid API
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1504 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-24 09:16:09 +00:00
madmaxoft@gmail.com
cf87169737
Refactored cInventory to use cItemGrid for the actual Storage
...
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-05-24 07:30:39 +00:00
madmaxoft@gmail.com
929d299965
ItemGrid: Renamed all Item to Slot - better and consistent naming
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1381 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-10 21:03:15 +00:00
madmaxoft@gmail.com
cc26f16463
Added cItemGrid to represent an XY grid of items; converted chests to use cItemGrid.
...
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
2013-04-10 19:52:03 +00:00