Class GuiChat

  • All Implemented Interfaces:
    GuiYesNoCallback
    Direct Known Subclasses:
    GuiSleepMP

    public class GuiChat
    extends GuiScreen
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Constructor Detail

      • GuiChat

        public GuiChat()
      • GuiChat

        public GuiChat​(java.lang.String defaultText)
    • Method Detail

      • initGui

        public void initGui()
        + Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.
        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 parChar1,
                                int parInt1)
        + Fired when a key is typed (except F11 which toggles full screen). This is the equivalent of KeyListener.keyTyped(KeyEvent e). Args : character (character on the key), keyCode (lwjgl Keyboard key code)
        Overrides:
        keyTyped in class GuiScreen
      • handleMouseInput

        public void handleMouseInput()
                              throws java.io.IOException
        + Handles mouse input.
        Overrides:
        handleMouseInput in class GuiScreen
        Throws:
        java.io.IOException
      • mouseClicked

        protected void mouseClicked​(int parInt1,
                                    int parInt2,
                                    int parInt3)
        + Called when the mouse is clicked. Args : mouseX, mouseY, clickedButton
        Overrides:
        mouseClicked in class GuiScreen
      • actionPerformed

        protected void actionPerformed​(GuiButton par1GuiButton)
        Description copied from class: GuiScreen
        + Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
        Overrides:
        actionPerformed in class GuiScreen
      • setText

        protected void setText​(java.lang.String newChatText,
                               boolean shouldOverwrite)
        + Sets the text of the chat
        Overrides:
        setText in class GuiScreen
      • autocompletePlayerNames

        public void autocompletePlayerNames()
      • getSentHistory

        public void getSentHistory​(int msgPos)
        + 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 i,
                               int j,
                               float f)
        + Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks
        Overrides:
        drawScreen in class GuiScreen
      • onAutocompleteResponse

        public void onAutocompleteResponse​(java.lang.String[] parArrayOfString)
      • 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