Class ChatScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
InBedChatScreen

public class ChatScreen extends Screen
  • Field Details

    • MOUSE_SCROLL_SPEED

      public static final double MOUSE_SCROLL_SPEED
      See Also:
    • USAGE_TEXT

      private static final Component USAGE_TEXT
    • TOOLTIP_MAX_WIDTH

      private static final int TOOLTIP_MAX_WIDTH
      See Also:
    • historyBuffer

      private String historyBuffer
    • historyPos

      private int historyPos
    • input

      protected EditBox input
    • initial

      private String initial
    • commandSuggestions

      CommandSuggestions commandSuggestions
  • Constructor Details

    • ChatScreen

      public ChatScreen(String p_95579_)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Screen
    • resize

      public void resize(Minecraft p_95600_, int p_95601_, int p_95602_)
      Overrides:
      resize in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • onEdited

      private void onEdited(String p_95611_)
    • keyPressed

      public boolean keyPressed(int p_95591_, int p_95592_, int p_95593_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • mouseScrolled

      public boolean mouseScrolled(double p_95581_, double p_95582_, double p_95583_, double p_300876_)
    • mouseClicked

      public boolean mouseClicked(double p_95585_, double p_95586_, int p_95587_)
    • insertText

      protected void insertText(String p_95606_, boolean p_95607_)
      Overrides:
      insertText in class Screen
    • moveInHistory

      public void moveInHistory(int p_95589_)
    • render

      public void render(GuiGraphics p_282470_, int p_282674_, int p_282014_, float p_283132_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderBackground

      public void renderBackground(GuiGraphics p_298203_, int p_299897_, int p_297752_, float p_300216_)
      Overrides:
      renderBackground in class Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen
    • setChatLine

      private void setChatLine(String p_95613_)
    • updateNarrationState

      protected void updateNarrationState(NarrationElementOutput p_169238_)
      Overrides:
      updateNarrationState in class Screen
    • getComponentStyleAt

      @Nullable private Style getComponentStyleAt(double p_232702_, double p_232703_)
    • handleChatInput

      public boolean handleChatInput(String p_242400_, boolean p_242161_)
    • normalizeChatMessage

      public String normalizeChatMessage(String p_232707_)