Class NewChatGui

java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.NewChatGui

public class NewChatGui extends AbstractGui
  • Field Details

    • LOGGER

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

      private final Minecraft minecraft
    • recentChat

      private final List<String> recentChat
    • allMessages

      private final List<ChatLine<ITextComponent>> allMessages
    • trimmedMessages

      private final List<ChatLine<IReorderingProcessor>> trimmedMessages
    • chatQueue

      private final Deque<ITextComponent> chatQueue
    • chatScrollbarPos

      private int chatScrollbarPos
    • newMessageSinceScroll

      private boolean newMessageSinceScroll
    • lastMessage

      private long lastMessage
  • Constructor Details

    • NewChatGui

      public NewChatGui(Minecraft p_i1022_1_)
  • Method Details

    • 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

      public void addMessage(ITextComponent p_146227_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 List<String> getRecentChat()
    • addRecentChat

      public void addRecentChat(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_)