Package net.minecraft.src
Class ContainerRepair
java.lang.Object
net.minecraft.src.Container
net.minecraft.src.ContainerRepair
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe maximum cost of repairing/renaming in the anvil.Fields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionContainerRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5, EntityPlayer par6EntityPlayer) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer par1EntityPlayer) voidonContainerClosed(EntityPlayer par1EntityPlayer) Called when the container is closed.voidonCraftGuiOpened(ICrafting par1ICrafting) voidonCraftMatrixChanged(IInventory par1IInventory) Callback for when the crafting matrix is changed.transferStackInSlot(EntityPlayer par1EntityPlayer, int par2) Called when a player shift-clicks on a slot.voidupdateItemName(String par1Str) used by the Anvil GUI to update the Item Name being typed by the playervoidupdateProgressBar(int par1, int par2) voidcalled when the Anvil Input Slot changes, calculates the new result and puts it in the output slotMethods inherited from class net.minecraft.src.Container
addSlotToContainer, attemptToMergeWithSlot, attemptToMergeWithSlotIfEmpty, calcRedstoneFromInventory, canDragIntoSlot, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, mergeItemStack, mergeItemStack, mergeItemStackFavoringHotbar, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClick
-
Field Details
-
maximumCost
public int maximumCostThe maximum cost of repairing/renaming in the anvil.
-
-
Constructor Details
-
ContainerRepair
public ContainerRepair(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
-
-
Method Details
-
onCraftMatrixChanged
Callback for when the crafting matrix is changed.- Overrides:
onCraftMatrixChangedin classContainer
-
updateRepairOutput
public void updateRepairOutput()called when the Anvil Input Slot changes, calculates the new result and puts it in the output slot -
onCraftGuiOpened
- Overrides:
onCraftGuiOpenedin classContainer
-
updateProgressBar
public void updateProgressBar(int par1, int par2) - Overrides:
updateProgressBarin classContainer
-
onContainerClosed
Called when the container is closed.- Overrides:
onContainerClosedin classContainer
-
canInteractWith
- Specified by:
canInteractWithin classContainer
-
transferStackInSlot
Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.- Overrides:
transferStackInSlotin classContainer
-
updateItemName
used by the Anvil GUI to update the Item Name being typed by the player
-