|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.inventory.Container
net.minecraft.inventory.ContainerRepair
public class ContainerRepair
Field Summary | |
---|---|
int |
maximumCost
The maximum cost of repairing/renaming in the anvil. |
Fields inherited from class net.minecraft.inventory.Container |
---|
inventoryItemStacks, inventorySlots, windowId |
Constructor Summary | |
---|---|
ContainerRepair(InventoryPlayer par1InventoryPlayer,
World par2World,
int par3,
int par4,
int par5,
EntityPlayer par6EntityPlayer)
|
Method Summary | |
---|---|
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 |
Methods inherited from class net.minecraft.inventory.Container |
---|
detectAndSendChanges, enchantItem, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int maximumCost
Constructor Detail |
---|
public ContainerRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
Method Detail |
---|
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 onCraftGuiClosed(EntityPlayer par1EntityPlayer)
onCraftGuiClosed
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |