public class ContainerRepair extends Container
Modifier and Type | Field and Description |
---|---|
int |
materialCost |
int |
maximumCost |
inventoryItemStacks, inventorySlots, listeners, windowId
Constructor and Description |
---|
ContainerRepair(InventoryPlayer playerInventory,
World worldIn,
BlockPos blockPosIn,
EntityPlayer player) |
ContainerRepair(InventoryPlayer playerInventory,
World worldIn,
EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IContainerListener listener) |
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
void |
updateItemName(java.lang.String newName) |
void |
updateProgressBar(int id,
int data) |
void |
updateRepairOutput() |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, putStacksInSlots, removeListener, resetDrag, retrySlotClick, setCanCraft, slotClick
public ContainerRepair(InventoryPlayer playerInventory, World worldIn, EntityPlayer player)
public ContainerRepair(InventoryPlayer playerInventory, World worldIn, BlockPos blockPosIn, EntityPlayer player)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void updateRepairOutput()
public void addListener(IContainerListener listener)
addListener
in class Container
public void updateProgressBar(int id, int data)
updateProgressBar
in class Container
public void onContainerClosed(EntityPlayer playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
@Nullable public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container
public void updateItemName(java.lang.String newName)