Class ItemRenameContainer

java.lang.Object
net.minecraft.src.Container
btw.inventory.container.ItemRenameContainer

public class ItemRenameContainer extends Container
  • Constructor Details

  • Method Details

    • onCraftMatrixChanged

      public void onCraftMatrixChanged(IInventory par1IInventory)
      Callback for when the crafting matrix is changed.
      Overrides:
      onCraftMatrixChanged in class Container
    • updateRepairOutput

      public void updateRepairOutput()
      called when the Anvil Input Slot changes, calculates the new result and puts it in the output slot
    • onCraftGuiOpened

      public void onCraftGuiOpened(ICrafting par1ICrafting)
      Overrides:
      onCraftGuiOpened in class Container
    • onContainerClosed

      public void onContainerClosed(EntityPlayer par1EntityPlayer)
      Called when the container is closed.
      Overrides:
      onContainerClosed in class Container
    • canInteractWith

      public boolean canInteractWith(EntityPlayer par1EntityPlayer)
      Specified by:
      canInteractWith in class Container
    • transferStackInSlot

      public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
      Called when a player shift-clicks on a slot. You must override this or you will crash when someone does that.
      Overrides:
      transferStackInSlot in class Container
    • updateItemName

      public void updateItemName(String par1Str)
      used by the Anvil GUI to update the Item Name being typed by the player
    • getRenameInputInventory

      public static IInventory getRenameInputInventory(ItemRenameContainer par0ItemRenameContainer)