Class GuiNewChat


  • public class GuiNewChat
    extends Gui
    + 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

      • GuiNewChat

        public GuiNewChat​(Minecraft mcIn)
    • Method Detail

      • drawChat

        public void drawChat​(int parInt1)
      • clearChatMessages

        public void clearChatMessages()
        + Clears the chat.
      • printChatMessage

        public void printChatMessage​(IChatComponent parIChatComponent)
      • printChatMessageWithOptionalDeletion

        public void printChatMessageWithOptionalDeletion​(IChatComponent parIChatComponent,
                                                         int parInt1)
        + prints the ChatComponent to Chat. If the ID is not 0, deletes an existing Chat Line of that ID from the GUI
      • refreshChat

        public void refreshChat()
      • getSentMessages

        public java.util.List<java.lang.String> getSentMessages()
        + Gets the list of messages previously sent through the chat GUI
      • addToSentMessages

        public void addToSentMessages​(java.lang.String parString1)
        + Adds this string to the list of sent messages, for recall using the up/down arrow keys
      • resetScroll

        public void resetScroll()
        + Resets the chat scroll (executed when the GUI is closed, among others)
      • scroll

        public void scroll​(int parInt1)
        + Scrolls the chat by the given number of lines.
      • getChatComponent

        public IChatComponent getChatComponent​(int parInt1,
                                               int parInt2)
        + Gets the chat component under the mouse
      • getChatOpen

        public boolean getChatOpen()
        + Returns true if the chat GUI is open
      • deleteChatLine

        public void deleteChatLine​(int parInt1)
        + finds and deletes a Chat line by ID
      • getChatWidth

        public int getChatWidth()
      • getChatHeight

        public int getChatHeight()
      • getChatScale

        public float getChatScale()
        + Returns the chatscale from mc.gameSettings.chatScale
      • calculateChatboxWidth

        public static int calculateChatboxWidth​(float parFloat1)
      • calculateChatboxHeight

        public static int calculateChatboxHeight​(float parFloat1)
      • getLineCount

        public int getLineCount()