public class ContainerChest extends Container
| Modifier and Type | Field and Description |
|---|---|
private IInventory |
lowerChestInventory |
private int |
numRows |
crafters, inventoryItemStacks, inventorySlots, windowId| Constructor and Description |
|---|
ContainerChest(IInventory playerInventory,
IInventory chestInventory,
EntityPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
IInventory |
getLowerChestInventory()
Return this chest container's lower chest inventory.
|
void |
onContainerClosed(EntityPlayer playerIn)
Called when the container is closed.
|
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index)
Take a stack from the specified inventory slot.
|
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, func_94534_d, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onCraftGuiOpened, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, resetDrag, retrySlotClick, setCanCraft, slotClick, updateProgressBarprivate IInventory lowerChestInventory
private int numRows
public ContainerChest(IInventory playerInventory, IInventory chestInventory, EntityPlayer player)
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot in class Containerpublic void onContainerClosed(EntityPlayer playerIn)
onContainerClosed in class Containerpublic IInventory getLowerChestInventory()