inventory/item properties
Posted: Fri Apr 15, 2016 5:22 am
Hi all
I wanted to see if I understood a concept correctly.
A chest is an entity with an inventory
An inventory is made up of item stacks
An item stack has add/remove methods but not a transfer method. By this I mean if you wanted to transfer an item stack from one inventory to another you would need to explicity remove from the first and add to the second. Checking along the way that sufficient items/room was available?
Thank you
I wanted to see if I understood a concept correctly.
A chest is an entity with an inventory
An inventory is made up of item stacks
An item stack has add/remove methods but not a transfer method. By this I mean if you wanted to transfer an item stack from one inventory to another you would need to explicity remove from the first and add to the second. Checking along the way that sufficient items/room was available?
Thank you