Class ChatScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget
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
    • historyBuffer

      private String historyBuffer
    • historyPos

      private int historyPos
    • input

      protected EditBox input
    • initial

      private final 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
    • tick

      public void tick()
      Overrides:
      tick 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_)
    • 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(PoseStack p_95595_, int p_95596_, int p_95597_, float p_95598_)
      Specified by:
      render in interface Widget
      Overrides:
      render 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