public class CombinedInventory extends java.lang.Object implements IInventory
| Constructor and Description |
|---|
CombinedInventory(IInventory... inventories) |
| Modifier and Type | Method and Description |
|---|---|
ItemInstance |
add(int id,
int amount) |
void |
addChangeCallback(IInvChangeCallback callback) |
ItemInstance |
get(int id) |
int |
getSlotAmount() |
void |
notifyChange(int slot) |
ItemInstance |
remove(int id,
int amount) |
void |
removeChangeCallback(IInvChangeCallback callback) |
void |
set(int id,
ItemInstance instance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsItem, containsResource, getItemIndexpublic CombinedInventory(IInventory... inventories)
public void set(int id,
ItemInstance instance)
set in interface IInventorypublic ItemInstance add(int id, int amount)
add in interface IInventorypublic ItemInstance remove(int id, int amount)
remove in interface IInventorypublic ItemInstance get(int id)
get in interface IInventorypublic int getSlotAmount()
getSlotAmount in interface IInventorypublic void notifyChange(int slot)
notifyChange in interface IInventorypublic void addChangeCallback(IInvChangeCallback callback)
addChangeCallback in interface IInventorypublic void removeChangeCallback(IInvChangeCallback callback)
removeChangeCallback in interface IInventory