public class Inventory extends AbstractInventory
| Modifier and Type | Field and Description |
|---|---|
protected ItemInstance[] |
slots |
callbacks| Constructor and Description |
|---|
Inventory(int slotAmount) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
get(int id) |
int |
getSlotAmount() |
void |
load(DataSet set) |
void |
save(DataSet set) |
void |
set(int id,
ItemInstance instance) |
add, add, addChangeCallback, addExistingFirst, addToSlot, containsItem, containsResource, fillRandomly, getItemIndex, getNextFreeIndex, iterator, notifyChange, remove, removeChangeCallbackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsInv, getActualSlotprotected final ItemInstance[] slots
public void set(int id,
ItemInstance instance)
public ItemInstance get(int id)
public int getSlotAmount()
public void save(DataSet set)
public void load(DataSet set)