public class ContainerFurnace extends Container
Modifier and Type | Field and Description |
---|---|
private int |
cookTime |
private int |
currentItemBurnTime |
private int |
furnaceBurnTime |
private IInventory |
tileFurnace |
private int |
totalCookTime |
inventoryItemStacks, inventorySlots, listeners, windowId
Constructor and Description |
---|
ContainerFurnace(InventoryPlayer playerInventory,
IInventory furnaceInventory) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IContainerListener listener) |
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
detectAndSendChanges() |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
void |
updateProgressBar(int id,
int data) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClick
private final IInventory tileFurnace
private int cookTime
private int totalCookTime
private int furnaceBurnTime
private int currentItemBurnTime
public ContainerFurnace(InventoryPlayer playerInventory, IInventory furnaceInventory)
public void addListener(IContainerListener listener)
addListener
in class Container
public void detectAndSendChanges()
detectAndSendChanges
in class Container
public void updateProgressBar(int id, int data)
updateProgressBar
in class Container
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container