Package btw.inventory.container
Class ItemRenameContainer
java.lang.Object
net.minecraft.src.Container
btw.inventory.container.ItemRenameContainer
-
Field Summary
Fields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionItemRenameContainer(InventoryPlayer par1InventoryPlayer, World par2World, EntityPlayer par6EntityPlayer) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer par1EntityPlayer) static IInventorygetRenameInputInventory(ItemRenameContainer par0ItemRenameContainer) 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 playervoidcalled 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, updateProgressBar
-
Constructor Details
-
ItemRenameContainer
public ItemRenameContainer(InventoryPlayer par1InventoryPlayer, World par2World, 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
-
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 -
getRenameInputInventory
-