Class RenameItemGui

All Implemented Interfaces:
ICrafting

public class RenameItemGui extends GuiContainer implements ICrafting
  • Constructor Details

  • Method Details

    • initGui

      public void initGui()
      Adds the buttons (and other controls) to the screen in question.
      Overrides:
      initGui in class GuiContainer
    • onGuiClosed

      public void onGuiClosed()
      Called when the screen is unloaded. Used to disable keyboard repeat events
      Overrides:
      onGuiClosed in class GuiContainer
    • keyTyped

      protected void keyTyped(char par1, int par2)
      Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).
      Overrides:
      keyTyped in class GuiContainer
    • mouseClicked

      protected void mouseClicked(int par1, int par2, int par3)
      Called when the mouse is clicked.
      Overrides:
      mouseClicked in class GuiContainer
    • drawScreen

      public void drawScreen(int par1, int par2, float par3)
      Draws the screen and all the components in it.
      Overrides:
      drawScreen in class GuiContainer
    • drawGuiContainerBackgroundLayer

      protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
      Draw the background layer for the GuiContainer (everything behind the items)
      Specified by:
      drawGuiContainerBackgroundLayer in class GuiContainer
    • updateCraftingInventory

      public void updateCraftingInventory(Container par1Container, List par2List)
      Specified by:
      updateCraftingInventory in interface ICrafting
    • sendSlotContents

      public void sendSlotContents(Container par1Container, int par2, ItemStack par3ItemStack)
      Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot. Args: Container, slot number, slot contents
      Specified by:
      sendSlotContents in interface ICrafting
    • sendProgressBarUpdate

      public void sendProgressBarUpdate(Container par1Container, int par2, int par3)
      Sends two ints to the client-side Container. Used for furnace burning time, smelting progress, brewing progress, and enchanting level. Normally the first int identifies which variable to update, and the second contains the new value. Both are truncated to shorts in non-local SMP.
      Specified by:
      sendProgressBarUpdate in interface ICrafting