public abstract class ItemContainer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
IInventory[] |
containedInventories |
AbstractEntityPlayer |
player |
| Constructor and Description |
|---|
ItemContainer(AbstractEntityPlayer player,
IInventory... containedInventories) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPlayerInventory(AbstractEntityPlayer player,
int x,
int y) |
void |
addSlot(ContainerSlot slot) |
protected void |
addSlotGrid(IInventory inventory,
int start,
int end,
int xStart,
int yStart,
int width) |
int |
getIndexForInvSlot(IInventory inv,
int id) |
abstract IResourceName |
getName() |
ContainerSlot |
getSlot(int id) |
int |
getSlotAmount() |
int |
getUnboundId() |
void |
onClosed() |
void |
onOpened() |
public final IInventory[] containedInventories
public final AbstractEntityPlayer player
public ItemContainer(AbstractEntityPlayer player, IInventory... containedInventories)
public ContainerSlot getSlot(int id)
public int getSlotAmount()
public void addSlot(ContainerSlot slot)
public int getIndexForInvSlot(IInventory inv, int id)
protected void addSlotGrid(IInventory inventory, int start, int end, int xStart, int yStart, int width)
protected void addPlayerInventory(AbstractEntityPlayer player, int x, int y)
public void onOpened()
public void onClosed()
public int getUnboundId()
public abstract IResourceName getName()