public class ContainerRepair extends Container
Modifier and Type | Field and Description |
---|---|
int |
maximumCost
The maximum cost of repairing/renaming in the anvil.
|
inventoryItemStacks, inventorySlots, windowId
Constructor and Description |
---|
ContainerRepair(InventoryPlayer par1InventoryPlayer,
World par2World,
int par3,
int par4,
int par5,
EntityPlayer par6EntityPlayer) |
Modifier and Type | Method and Description |
---|---|
void |
addCraftingToCrafters(ICrafting par1ICrafting) |
boolean |
canInteractWith(EntityPlayer par1EntityPlayer) |
void |
onContainerClosed(EntityPlayer par1EntityPlayer)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory par1IInventory)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer par1EntityPlayer,
int par2)
Called when a player shift-clicks on a slot.
|
void |
updateItemName(String par1Str)
used by the Anvil GUI to update the Item Name being typed by the player
|
void |
updateProgressBar(int par1,
int par2) |
void |
updateRepairOutput()
called when the Anvil Input Slot changes, calculates the new result and puts it in the output slot
|
calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick
public int maximumCost
public ContainerRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
public void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged
in class Container
public void updateRepairOutput()
public void addCraftingToCrafters(ICrafting par1ICrafting)
addCraftingToCrafters
in class Container
public void updateProgressBar(int par1, int par2)
updateProgressBar
in class Container
public void onContainerClosed(EntityPlayer par1EntityPlayer)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot
in class Container
public void updateItemName(String par1Str)