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 |
onCraftGuiClosed(EntityPlayer par1EntityPlayer)
Callback for when the crafting gui 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, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94531_b, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClickpublic int maximumCost
public ContainerRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
public void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged in class Containerpublic void updateRepairOutput()
public void addCraftingToCrafters(ICrafting par1ICrafting)
addCraftingToCrafters in class Containerpublic void updateProgressBar(int par1,
int par2)
updateProgressBar in class Containerpublic void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
onCraftGuiClosed in class Containerpublic boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot in class Containerpublic void updateItemName(String par1Str)