Class GuiContainerCreative


public class GuiContainerCreative extends InventoryEffectRenderer
  • Constructor Details

    • GuiContainerCreative

      public GuiContainerCreative(EntityPlayer par1EntityPlayer)
  • Method Details

    • updateScreen

      public void updateScreen()
      Called from the main game loop to update the screen.
      Overrides:
      updateScreen in class GuiContainer
    • handleMouseClick

      protected void handleMouseClick(Slot par1Slot, int par2, int par3, int par4)
      Overrides:
      handleMouseClick in class GuiContainer
    • initGui

      public void initGui()
      Adds the buttons (and other controls) to the screen in question.
      Overrides:
      initGui in class InventoryEffectRenderer
    • 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
    • drawGuiContainerForegroundLayer

      protected void drawGuiContainerForegroundLayer(int par1, int par2)
      Draw the foreground layer for the GuiContainer (everything in front of the items)
      Overrides:
      drawGuiContainerForegroundLayer in class GuiContainer
    • mouseClicked

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

      protected void mouseMovedOrUp(int par1, int par2, int par3)
      Called when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY, which) which==-1 is mouseMove, which==0 or which==1 is mouseUp
      Overrides:
      mouseMovedOrUp in class GuiContainer
    • handleMouseInput

      public void handleMouseInput()
      Handles mouse input.
      Overrides:
      handleMouseInput in class GuiScreen
    • drawScreen

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

      protected void drawItemStackTooltip(ItemStack par1ItemStack, int par2, int par3)
      Overrides:
      drawItemStackTooltip 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
    • func_74232_a

      protected boolean func_74232_a(CreativeTabs par1CreativeTabs, int par2, int par3)
    • renderCreativeInventoryHoveringText

      protected boolean renderCreativeInventoryHoveringText(CreativeTabs par1CreativeTabs, int par2, int par3)
      Renders the creative inventory hovering text if mouse is over it. Returns true if did render or false otherwise. Params: current creative tab to be checked, current mouse x position, current mouse y position.
    • renderCreativeTab

      protected void renderCreativeTab(CreativeTabs par1CreativeTabs)
      Renders passed creative inventory tab into the screen.
    • actionPerformed

      protected void actionPerformed(GuiButton par1GuiButton)
      Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
      Overrides:
      actionPerformed in class GuiScreen
    • getCurrentTabIndex

      public int getCurrentTabIndex()
      Returns the current creative tab index.