Class ChatInputSuggestor

java.lang.Object
net.minecraft.client.gui.screen.ChatInputSuggestor

@Environment(CLIENT) public class ChatInputSuggestor extends Object
Mappings:
Namespace Name
official ehs
intermediary net/minecraft/class_4717
named net/minecraft/client/gui/screen/ChatInputSuggestor
  • Field Details

    • WHITESPACE_PATTERN

      private static final Pattern WHITESPACE_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a:Ljava/util/regex/Pattern;
      intermediary field_21596 Lnet/minecraft/class_4717;field_21596:Ljava/util/regex/Pattern;
      named WHITESPACE_PATTERN Lnet/minecraft/client/gui/screen/ChatInputSuggestor;WHITESPACE_PATTERN:Ljava/util/regex/Pattern;
    • ERROR_STYLE

      private static final Style ERROR_STYLE
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b:Lsj;
      intermediary field_25885 Lnet/minecraft/class_4717;field_25885:Lnet/minecraft/class_2583;
      named ERROR_STYLE Lnet/minecraft/client/gui/screen/ChatInputSuggestor;ERROR_STYLE:Lnet/minecraft/text/Style;
    • INFO_STYLE

      private static final Style INFO_STYLE
      Mappings:
      Namespace Name Mixin selector
      official c Lehs;c:Lsj;
      intermediary field_25886 Lnet/minecraft/class_4717;field_25886:Lnet/minecraft/class_2583;
      named INFO_STYLE Lnet/minecraft/client/gui/screen/ChatInputSuggestor;INFO_STYLE:Lnet/minecraft/text/Style;
    • HIGHLIGHT_STYLES

      private static final List<Style> HIGHLIGHT_STYLES
      Mappings:
      Namespace Name Mixin selector
      official d Lehs;d:Ljava/util/List;
      intermediary field_25887 Lnet/minecraft/class_4717;field_25887:Ljava/util/List;
      named HIGHLIGHT_STYLES Lnet/minecraft/client/gui/screen/ChatInputSuggestor;HIGHLIGHT_STYLES:Ljava/util/List;
    • client

      final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official e Lehs;e:Lefu;
      intermediary field_21597 Lnet/minecraft/class_4717;field_21597:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/screen/ChatInputSuggestor;client:Lnet/minecraft/client/MinecraftClient;
    • owner

      final Screen owner
      Mappings:
      Namespace Name Mixin selector
      official f Lehs;f:Lelm;
      intermediary field_21598 Lnet/minecraft/class_4717;field_21598:Lnet/minecraft/class_437;
      named owner Lnet/minecraft/client/gui/screen/ChatInputSuggestor;owner:Lnet/minecraft/client/gui/screen/Screen;
    • textField

      final TextFieldWidget textField
      Mappings:
      Namespace Name Mixin selector
      official g Lehs;g:Lehx;
      intermediary field_21599 Lnet/minecraft/class_4717;field_21599:Lnet/minecraft/class_342;
      named textField Lnet/minecraft/client/gui/screen/ChatInputSuggestor;textField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
    • textRenderer

      final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      official h Lehs;h:Leha;
      intermediary field_21600 Lnet/minecraft/class_4717;field_21600:Lnet/minecraft/class_327;
      named textRenderer Lnet/minecraft/client/gui/screen/ChatInputSuggestor;textRenderer:Lnet/minecraft/client/font/TextRenderer;
    • slashOptional

      private final boolean slashOptional
      Mappings:
      Namespace Name Mixin selector
      official i Lehs;i:Z
      intermediary field_21601 Lnet/minecraft/class_4717;field_21601:Z
      named slashOptional Lnet/minecraft/client/gui/screen/ChatInputSuggestor;slashOptional:Z
    • suggestingWhenEmpty

      private final boolean suggestingWhenEmpty
      Mappings:
      Namespace Name Mixin selector
      official j Lehs;j:Z
      intermediary field_21602 Lnet/minecraft/class_4717;field_21602:Z
      named suggestingWhenEmpty Lnet/minecraft/client/gui/screen/ChatInputSuggestor;suggestingWhenEmpty:Z
    • inWindowIndexOffset

      final int inWindowIndexOffset
      Mappings:
      Namespace Name Mixin selector
      official k Lehs;k:I
      intermediary field_21603 Lnet/minecraft/class_4717;field_21603:I
      named inWindowIndexOffset Lnet/minecraft/client/gui/screen/ChatInputSuggestor;inWindowIndexOffset:I
    • maxSuggestionSize

      final int maxSuggestionSize
      Mappings:
      Namespace Name Mixin selector
      official l Lehs;l:I
      intermediary field_21604 Lnet/minecraft/class_4717;field_21604:I
      named maxSuggestionSize Lnet/minecraft/client/gui/screen/ChatInputSuggestor;maxSuggestionSize:I
    • chatScreenSized

      final boolean chatScreenSized
      Mappings:
      Namespace Name Mixin selector
      official m Lehs;m:Z
      intermediary field_21605 Lnet/minecraft/class_4717;field_21605:Z
      named chatScreenSized Lnet/minecraft/client/gui/screen/ChatInputSuggestor;chatScreenSized:Z
    • color

      final int color
      Mappings:
      Namespace Name Mixin selector
      official n Lehs;n:I
      intermediary field_21606 Lnet/minecraft/class_4717;field_21606:I
      named color Lnet/minecraft/client/gui/screen/ChatInputSuggestor;color:I
    • messages

      private final List<OrderedText> messages
      Mappings:
      Namespace Name Mixin selector
      official o Lehs;o:Ljava/util/List;
      intermediary field_21607 Lnet/minecraft/class_4717;field_21607:Ljava/util/List;
      named messages Lnet/minecraft/client/gui/screen/ChatInputSuggestor;messages:Ljava/util/List;
    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      official p Lehs;p:I
      intermediary field_21608 Lnet/minecraft/class_4717;field_21608:I
      named x Lnet/minecraft/client/gui/screen/ChatInputSuggestor;x:I
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official q Lehs;q:I
      intermediary field_21609 Lnet/minecraft/class_4717;field_21609:I
      named width Lnet/minecraft/client/gui/screen/ChatInputSuggestor;width:I
    • parse

      @Nullable private @Nullable com.mojang.brigadier.ParseResults<CommandSource> parse
      Mappings:
      Namespace Name Mixin selector
      official r Lehs;r:Lcom/mojang/brigadier/ParseResults;
      intermediary field_21610 Lnet/minecraft/class_4717;field_21610:Lcom/mojang/brigadier/ParseResults;
      named parse Lnet/minecraft/client/gui/screen/ChatInputSuggestor;parse:Lcom/mojang/brigadier/ParseResults;
    • pendingSuggestions

      @Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingSuggestions
      Mappings:
      Namespace Name Mixin selector
      official s Lehs;s:Ljava/util/concurrent/CompletableFuture;
      intermediary field_21611 Lnet/minecraft/class_4717;field_21611:Ljava/util/concurrent/CompletableFuture;
      named pendingSuggestions Lnet/minecraft/client/gui/screen/ChatInputSuggestor;pendingSuggestions:Ljava/util/concurrent/CompletableFuture;
    • window

      Mappings:
      Namespace Name Mixin selector
      official t Lehs;t:Lehs$a;
      intermediary field_21612 Lnet/minecraft/class_4717;field_21612:Lnet/minecraft/class_4717$class_464;
      named window Lnet/minecraft/client/gui/screen/ChatInputSuggestor;window:Lnet/minecraft/client/gui/screen/ChatInputSuggestor$SuggestionWindow;
    • windowActive

      private boolean windowActive
      Mappings:
      Namespace Name Mixin selector
      official u Lehs;u:Z
      intermediary field_21613 Lnet/minecraft/class_4717;field_21613:Z
      named windowActive Lnet/minecraft/client/gui/screen/ChatInputSuggestor;windowActive:Z
    • completingSuggestions

      boolean completingSuggestions
      Mappings:
      Namespace Name Mixin selector
      official v Lehs;v:Z
      intermediary field_21614 Lnet/minecraft/class_4717;field_21614:Z
      named completingSuggestions Lnet/minecraft/client/gui/screen/ChatInputSuggestor;completingSuggestions:Z
  • Constructor Details

    • ChatInputSuggestor

      public ChatInputSuggestor(MinecraftClient client, Screen owner, TextFieldWidget textField, TextRenderer textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lehs;<init>(Lefu;Lelm;Lehx;Leha;ZZIIZI)V
      intermediary <init> Lnet/minecraft/class_4717;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_437;Lnet/minecraft/class_342;Lnet/minecraft/class_327;ZZIIZI)V
      named <init> Lnet/minecraft/client/gui/screen/ChatInputSuggestor;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/gui/widget/TextFieldWidget;Lnet/minecraft/client/font/TextRenderer;ZZIIZI)V
  • Method Details

    • setWindowActive

      public void setWindowActive(boolean windowActive)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Z)V
      intermediary method_23933 Lnet/minecraft/class_4717;method_23933(Z)V
      named setWindowActive Lnet/minecraft/client/gui/screen/ChatInputSuggestor;setWindowActive(Z)V
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(III)Z
      intermediary method_23924 Lnet/minecraft/class_4717;method_23924(III)Z
      named keyPressed Lnet/minecraft/client/gui/screen/ChatInputSuggestor;keyPressed(III)Z
    • mouseScrolled

      public boolean mouseScrolled(double amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(D)Z
      intermediary method_23921 Lnet/minecraft/class_4717;method_23921(D)Z
      named mouseScrolled Lnet/minecraft/client/gui/screen/ChatInputSuggestor;mouseScrolled(D)Z
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(DDI)Z
      intermediary method_23922 Lnet/minecraft/class_4717;method_23922(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/screen/ChatInputSuggestor;mouseClicked(DDI)Z
    • show

      public void show(boolean narrateFirstSuggestion)
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b(Z)V
      intermediary method_23920 Lnet/minecraft/class_4717;method_23920(Z)V
      named show Lnet/minecraft/client/gui/screen/ChatInputSuggestor;show(Z)V
    • clearWindow

      public void clearWindow()
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a()V
      intermediary method_44931 Lnet/minecraft/class_4717;method_44931()V
      named clearWindow Lnet/minecraft/client/gui/screen/ChatInputSuggestor;clearWindow()V
    • sortSuggestions

      private List<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;
      intermediary method_30104 Lnet/minecraft/class_4717;method_30104(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;
      named sortSuggestions Lnet/minecraft/client/gui/screen/ChatInputSuggestor;sortSuggestions(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;
    • refresh

      public void refresh()
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b()V
      intermediary method_23934 Lnet/minecraft/class_4717;method_23934()V
      named refresh Lnet/minecraft/client/gui/screen/ChatInputSuggestor;refresh()V
    • getStartOfCurrentWord

      private static int getStartOfCurrentWord(String input)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Ljava/lang/String;)I
      intermediary method_23930 Lnet/minecraft/class_4717;method_23930(Ljava/lang/String;)I
      named getStartOfCurrentWord Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getStartOfCurrentWord(Ljava/lang/String;)I
    • formatException

      private static OrderedText formatException(com.mojang.brigadier.exceptions.CommandSyntaxException exception)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lalu;
      intermediary method_30505 Lnet/minecraft/class_4717;method_30505(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/class_5481;
      named formatException Lnet/minecraft/client/gui/screen/ChatInputSuggestor;formatException(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/text/OrderedText;
    • showCommandSuggestions

      private void showCommandSuggestions()
      Mappings:
      Namespace Name Mixin selector
      official e Lehs;e()V
      intermediary method_23937 Lnet/minecraft/class_4717;method_23937()V
      named showCommandSuggestions Lnet/minecraft/client/gui/screen/ChatInputSuggestor;showCommandSuggestions()V
    • showUsages

      private void showUsages(Formatting formatting)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lp;)V
      intermediary method_23929 Lnet/minecraft/class_4717;method_23929(Lnet/minecraft/class_124;)V
      named showUsages Lnet/minecraft/client/gui/screen/ChatInputSuggestor;showUsages(Lnet/minecraft/util/Formatting;)V
    • provideRenderText

      private OrderedText provideRenderText(String original, int firstCharacterIndex)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Ljava/lang/String;I)Lalu;
      intermediary method_23931 Lnet/minecraft/class_4717;method_23931(Ljava/lang/String;I)Lnet/minecraft/class_5481;
      named provideRenderText Lnet/minecraft/client/gui/screen/ChatInputSuggestor;provideRenderText(Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
    • getSuggestionSuffix

      @Nullable static @Nullable String getSuggestionSuffix(String original, String suggestion)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_23936 Lnet/minecraft/class_4717;method_23936(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      named getSuggestionSuffix Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getSuggestionSuffix(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    • highlight

      private static OrderedText highlight(com.mojang.brigadier.ParseResults<CommandSource> parse, String original, int firstCharacterIndex)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lalu;
      intermediary method_23925 Lnet/minecraft/class_4717;method_23925(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/class_5481;
      named highlight Lnet/minecraft/client/gui/screen/ChatInputSuggestor;highlight(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Leaq;II)V
      intermediary method_23923 Lnet/minecraft/class_4717;method_23923(Lnet/minecraft/class_4587;II)V
      named render Lnet/minecraft/client/gui/screen/ChatInputSuggestor;render(Lnet/minecraft/client/util/math/MatrixStack;II)V
    • tryRenderWindow

      public boolean tryRenderWindow(MatrixStack matrices, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b(Leaq;II)Z
      intermediary method_44933 Lnet/minecraft/class_4717;method_44933(Lnet/minecraft/class_4587;II)Z
      named tryRenderWindow Lnet/minecraft/client/gui/screen/ChatInputSuggestor;tryRenderWindow(Lnet/minecraft/client/util/math/MatrixStack;II)Z
    • renderMessages

      public void renderMessages(MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Leaq;)V
      intermediary method_44932 Lnet/minecraft/class_4717;method_44932(Lnet/minecraft/class_4587;)V
      named renderMessages Lnet/minecraft/client/gui/screen/ChatInputSuggestor;renderMessages(Lnet/minecraft/client/util/math/MatrixStack;)V
    • getNarration

      public String getNarration()
      Mappings:
      Namespace Name Mixin selector
      official c Lehs;c()Ljava/lang/String;
      intermediary method_23958 Lnet/minecraft/class_4717;method_23958()Ljava/lang/String;
      named getNarration Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getNarration()Ljava/lang/String;
    • getNodeAt

      @Nullable public @Nullable com.mojang.brigadier.tree.CommandNode<CommandSource> getNodeAt(int cursor)
      Returns the command node at cursor.
      Returns:
      the command node at cursor
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(I)Lcom/mojang/brigadier/tree/CommandNode;
      intermediary method_44277 Lnet/minecraft/class_4717;method_44277(I)Lcom/mojang/brigadier/tree/CommandNode;
      named getNodeAt Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getNodeAt(I)Lcom/mojang/brigadier/tree/CommandNode;
    • getParse

      @Nullable public @Nullable com.mojang.brigadier.ParseResults<CommandSource> getParse()
      Mappings:
      Namespace Name Mixin selector
      official d Lehs;d()Lcom/mojang/brigadier/ParseResults;
      intermediary method_45028 Lnet/minecraft/class_4717;method_45028()Lcom/mojang/brigadier/ParseResults;
      named getParse Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getParse()Lcom/mojang/brigadier/ParseResults;
    • getNodeAt

      @Nullable private static <S> @Nullable com.mojang.brigadier.tree.CommandNode<S> getNodeAt(int cursor, com.mojang.brigadier.context.CommandContextBuilder<S> builder)
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;
      intermediary method_44278 Lnet/minecraft/class_4717;method_44278(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;
      named getNodeAt Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getNodeAt(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;