Class NewChatGui

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • minecraft

        private final Minecraft minecraft
      • recentChat

        private final java.util.List<java.lang.String> recentChat
      • chatScrollbarPos

        private int chatScrollbarPos
      • newMessageSinceScroll

        private boolean newMessageSinceScroll
      • lastMessage

        private long lastMessage
    • Constructor Detail

      • NewChatGui

        public NewChatGui​(Minecraft p_i1022_1_)
    • Method Detail

      • render

        public void render​(MatrixStack p_238492_1_,
                           int p_238492_2_)
      • isChatHidden

        private boolean isChatHidden()
      • getTimeFactor

        private static double getTimeFactor​(int p_212915_0_)
      • clearMessages

        public void clearMessages​(boolean p_146231_1_)
      • addMessage

        private void addMessage​(ITextComponent p_146234_1_,
                                int p_146234_2_)
      • addMessage

        private void addMessage​(ITextComponent p_238493_1_,
                                int p_238493_2_,
                                int p_238493_3_,
                                boolean p_238493_4_)
      • rescaleChat

        public void rescaleChat()
      • getRecentChat

        public java.util.List<java.lang.String> getRecentChat()
      • addRecentChat

        public void addRecentChat​(java.lang.String p_146239_1_)
      • resetChatScroll

        public void resetChatScroll()
      • scrollChat

        public void scrollChat​(double p_194813_1_)
      • handleChatQueueClicked

        public boolean handleChatQueueClicked​(double p_238491_1_,
                                              double p_238491_3_)
      • getClickedComponentStyleAt

        @Nullable
        public Style getClickedComponentStyleAt​(double p_238494_1_,
                                                double p_238494_3_)
      • isChatFocused

        private boolean isChatFocused()
      • removeById

        private void removeById​(int p_146242_1_)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getScale

        public double getScale()
      • getWidth

        public static int getWidth​(double p_194814_0_)
      • getHeight

        public static int getHeight​(double p_194816_0_)
      • getLinesPerPage

        public int getLinesPerPage()
      • getChatRateMillis

        private long getChatRateMillis()
      • processPendingMessages

        private void processPendingMessages()
      • enqueueMessage

        public void enqueueMessage​(ITextComponent p_238495_1_)