public class ContainerRepair extends Container
| Modifier and Type | Field and Description |
|---|---|
private IInventory |
inputSlots |
private static org.apache.logging.log4j.Logger |
LOGGER |
int |
materialCost |
int |
maximumCost |
private IInventory |
outputSlot |
private EntityPlayer |
player |
private java.lang.String |
repairedItemName |
private BlockPos |
selfPosition |
private World |
world |
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, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClickprivate static final org.apache.logging.log4j.Logger LOGGER
private final IInventory outputSlot
private final IInventory inputSlots
private final World world
private final BlockPos selfPosition
public int maximumCost
public int materialCost
private java.lang.String repairedItemName
private final EntityPlayer player
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 Containerpublic void updateRepairOutput()
public void addListener(IContainerListener listener)
addListener in class Containerpublic void updateProgressBar(int id,
int data)
updateProgressBar in class Containerpublic void onContainerClosed(EntityPlayer playerIn)
onContainerClosed in class Containerpublic boolean canInteractWith(EntityPlayer playerIn)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot in class Containerpublic void updateItemName(java.lang.String newName)