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
    • setInitialFocus

      protected void setInitialFocus()
      Overrides:
      setInitialFocus 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_295977_)
    • 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_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • renderBackground

      public void renderBackground(GuiGraphics p_295929_, int p_296130_, int p_296353_, float p_294668_)
      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 void handleChatInput(String p_242400_, boolean p_242161_)
    • normalizeChatMessage

      public String normalizeChatMessage(String p_232707_)