Class GuiChat

Direct Known Subclasses:
GuiSleepMP

public class GuiChat extends GuiScreen
  • Field Details

    • inputField

      protected GuiTextField inputField
      Chat entry field
  • Constructor Details

    • GuiChat

      public GuiChat()
    • GuiChat

      public GuiChat(String par1Str)
  • Method Details

    • initGui

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

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

      public void updateScreen()
      Called from the main game loop to update the screen.
      Overrides:
      updateScreen in class GuiScreen
    • 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 GuiScreen
    • handleMouseInput

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

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

      public void confirmClicked(boolean par1, int par2)
      Overrides:
      confirmClicked in class GuiScreen
    • completePlayerName

      public void completePlayerName()
      Autocompletes player name
    • getSentHistory

      public void getSentHistory(int par1)
      input is relative and is applied directly to the sentHistoryCursor so -1 is the previous message, 1 is the next message from the current cursor position
    • drawScreen

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

      public void func_73894_a(String[] par1ArrayOfStr)
    • doesGuiPauseGame

      public boolean doesGuiPauseGame()
      Returns true if this GUI should pause the game when it is displayed in single-player
      Overrides:
      doesGuiPauseGame in class GuiScreen