Package net.minecraft.client.gui.screen
Class ChatInputSuggestor
java.lang.Object
net.minecraft.client.gui.screen.ChatInputSuggestor
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ChatInputSuggestor
intermediary net/minecraft/class_4717
official fhj
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
(package private) final boolean
(package private) final MinecraftClient
(package private) final int
(package private) boolean
private static final Style
private static final Style
(package private) final int
(package private) final int
private final List
<OrderedText> private final Screen
private @Nullable com.mojang.brigadier.ParseResults
<CommandSource> private @Nullable CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> private final boolean
private final boolean
(package private) final TextFieldWidget
(package private) final TextRenderer
private static final Pattern
private int
private boolean
private int
-
Constructor Summary
ConstructorDescriptionChatInputSuggestor
(MinecraftClient client, Screen owner, TextFieldWidget textField, TextRenderer textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private static OrderedText
formatException
(com.mojang.brigadier.exceptions.CommandSyntaxException exception) private static int
getStartOfCurrentWord
(String input) getSuggestionSuffix
(String original, String suggestion) private static OrderedText
highlight
(com.mojang.brigadier.ParseResults<CommandSource> parse, String original, int firstCharacterIndex) boolean
isOpen()
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int button) boolean
mouseScrolled
(double amount) private OrderedText
provideRenderText
(String original, int firstCharacterIndex) void
refresh()
void
render
(DrawContext context, int mouseX, int mouseY) void
renderMessages
(DrawContext context) void
setCanLeave
(boolean canLeave) void
setWindowActive
(boolean windowActive) void
show
(boolean narrateFirstSuggestion) private void
private boolean
showUsages
(Formatting formatting) private List
<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions
(com.mojang.brigadier.suggestion.Suggestions suggestions) boolean
tryRenderWindow
(DrawContext context, int mouseX, int mouseY)
-
Field Details
-
WHITESPACE_PATTERN
- Mappings:
Namespace Name Mixin selector named WHITESPACE_PATTERN
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;WHITESPACE_PATTERN:Ljava/util/regex/Pattern;
intermediary field_21596
Lnet/minecraft/class_4717;field_21596:Ljava/util/regex/Pattern;
official a
Lfhj;a:Ljava/util/regex/Pattern;
-
ERROR_STYLE
- Mappings:
Namespace Name Mixin selector named ERROR_STYLE
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;ERROR_STYLE:Lnet/minecraft/text/Style;
intermediary field_25885
Lnet/minecraft/class_4717;field_25885:Lnet/minecraft/class_2583;
official b
Lfhj;b:Lym;
-
INFO_STYLE
- Mappings:
Namespace Name Mixin selector named INFO_STYLE
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;INFO_STYLE:Lnet/minecraft/text/Style;
intermediary field_25886
Lnet/minecraft/class_4717;field_25886:Lnet/minecraft/class_2583;
official c
Lfhj;c:Lym;
-
HIGHLIGHT_STYLES
- Mappings:
Namespace Name Mixin selector named HIGHLIGHT_STYLES
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;HIGHLIGHT_STYLES:Ljava/util/List;
intermediary field_25887
Lnet/minecraft/class_4717;field_25887:Ljava/util/List;
official d
Lfhj;d:Ljava/util/List;
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_21597
Lnet/minecraft/class_4717;field_21597:Lnet/minecraft/class_310;
official e
Lfhj;e:Lffh;
-
owner
- Mappings:
Namespace Name Mixin selector named owner
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;owner:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_21598
Lnet/minecraft/class_4717;field_21598:Lnet/minecraft/class_437;
official f
Lfhj;f:Lfnf;
-
textField
- Mappings:
Namespace Name Mixin selector named textField
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;textField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
intermediary field_21599
Lnet/minecraft/class_4717;field_21599:Lnet/minecraft/class_342;
official g
Lfhj;g:Lfhp;
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRenderer
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;textRenderer:Lnet/minecraft/client/font/TextRenderer;
intermediary field_21600
Lnet/minecraft/class_4717;field_21600:Lnet/minecraft/class_327;
official h
Lfhj;h:Lfgr;
-
slashOptional
private final boolean slashOptional- Mappings:
Namespace Name Mixin selector named slashOptional
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;slashOptional:Z
intermediary field_21601
Lnet/minecraft/class_4717;field_21601:Z
official i
Lfhj;i:Z
-
suggestingWhenEmpty
private final boolean suggestingWhenEmpty- Mappings:
Namespace Name Mixin selector named suggestingWhenEmpty
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;suggestingWhenEmpty:Z
intermediary field_21602
Lnet/minecraft/class_4717;field_21602:Z
official j
Lfhj;j:Z
-
inWindowIndexOffset
final int inWindowIndexOffset- Mappings:
Namespace Name Mixin selector named inWindowIndexOffset
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;inWindowIndexOffset:I
intermediary field_21603
Lnet/minecraft/class_4717;field_21603:I
official k
Lfhj;k:I
-
maxSuggestionSize
final int maxSuggestionSize- Mappings:
Namespace Name Mixin selector named maxSuggestionSize
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;maxSuggestionSize:I
intermediary field_21604
Lnet/minecraft/class_4717;field_21604:I
official l
Lfhj;l:I
-
chatScreenSized
final boolean chatScreenSized- Mappings:
Namespace Name Mixin selector named chatScreenSized
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;chatScreenSized:Z
intermediary field_21605
Lnet/minecraft/class_4717;field_21605:Z
official m
Lfhj;m:Z
-
color
final int color- Mappings:
Namespace Name Mixin selector named color
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;color:I
intermediary field_21606
Lnet/minecraft/class_4717;field_21606:I
official n
Lfhj;n:I
-
messages
- Mappings:
Namespace Name Mixin selector named messages
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;messages:Ljava/util/List;
intermediary field_21607
Lnet/minecraft/class_4717;field_21607:Ljava/util/List;
official o
Lfhj;o:Ljava/util/List;
-
x
private int x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;x:I
intermediary field_21608
Lnet/minecraft/class_4717;field_21608:I
official p
Lfhj;p:I
-
width
private int width- Mappings:
Namespace Name Mixin selector named width
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;width:I
intermediary field_21609
Lnet/minecraft/class_4717;field_21609:I
official q
Lfhj;q:I
-
parse
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;parse:Lcom/mojang/brigadier/ParseResults;
intermediary field_21610
Lnet/minecraft/class_4717;field_21610:Lcom/mojang/brigadier/ParseResults;
official r
Lfhj;r:Lcom/mojang/brigadier/ParseResults;
-
pendingSuggestions
@Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingSuggestions- Mappings:
Namespace Name Mixin selector named pendingSuggestions
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;pendingSuggestions:Ljava/util/concurrent/CompletableFuture;
intermediary field_21611
Lnet/minecraft/class_4717;field_21611:Ljava/util/concurrent/CompletableFuture;
official s
Lfhj;s:Ljava/util/concurrent/CompletableFuture;
-
window
- Mappings:
Namespace Name Mixin selector named window
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;window:Lnet/minecraft/client/gui/screen/ChatInputSuggestor$SuggestionWindow;
intermediary field_21612
Lnet/minecraft/class_4717;field_21612:Lnet/minecraft/class_4717$class_464;
official t
Lfhj;t:Lfhj$a;
-
windowActive
private boolean windowActive- Mappings:
Namespace Name Mixin selector named windowActive
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;windowActive:Z
intermediary field_21613
Lnet/minecraft/class_4717;field_21613:Z
official u
Lfhj;u:Z
-
completingSuggestions
boolean completingSuggestions- Mappings:
Namespace Name Mixin selector named completingSuggestions
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;completingSuggestions:Z
intermediary field_21614
Lnet/minecraft/class_4717;field_21614:Z
official v
Lfhj;v:Z
-
canLeave
private boolean canLeave- Mappings:
Namespace Name Mixin selector named canLeave
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;canLeave:Z
intermediary field_46191
Lnet/minecraft/class_4717;field_46191:Z
official w
Lfhj;w: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 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
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
official <init>
Lfhj;<init>(Lffh;Lfnf;Lfhp;Lfgr;ZZIIZI)V
-
-
Method Details
-
setWindowActive
public void setWindowActive(boolean windowActive) - Mappings:
Namespace Name Mixin selector named setWindowActive
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;setWindowActive(Z)V
intermediary method_23933
Lnet/minecraft/class_4717;method_23933(Z)V
official a
Lfhj;a(Z)V
-
setCanLeave
public void setCanLeave(boolean canLeave) - Mappings:
Namespace Name Mixin selector named setCanLeave
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;setCanLeave(Z)V
intermediary method_53869
Lnet/minecraft/class_4717;method_53869(Z)V
official b
Lfhj;b(Z)V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) - Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;keyPressed(III)Z
intermediary method_23924
Lnet/minecraft/class_4717;method_23924(III)Z
official a
Lfhj;a(III)Z
-
mouseScrolled
public boolean mouseScrolled(double amount) - Mappings:
Namespace Name Mixin selector named mouseScrolled
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;mouseScrolled(D)Z
intermediary method_23921
Lnet/minecraft/class_4717;method_23921(D)Z
official a
Lfhj;a(D)Z
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Mappings:
Namespace Name Mixin selector named mouseClicked
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;mouseClicked(DDI)Z
intermediary method_23922
Lnet/minecraft/class_4717;method_23922(DDI)Z
official a
Lfhj;a(DDI)Z
-
show
public void show(boolean narrateFirstSuggestion) - Mappings:
Namespace Name Mixin selector named show
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;show(Z)V
intermediary method_23920
Lnet/minecraft/class_4717;method_23920(Z)V
official c
Lfhj;c(Z)V
-
isOpen
public boolean isOpen()- Mappings:
Namespace Name Mixin selector named isOpen
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;isOpen()Z
intermediary method_53867
Lnet/minecraft/class_4717;method_53867()Z
official a
Lfhj;a()Z
-
getSuggestionUsageNarrationText
- Mappings:
Namespace Name Mixin selector named getSuggestionUsageNarrationText
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getSuggestionUsageNarrationText()Lnet/minecraft/text/Text;
intermediary method_53868
Lnet/minecraft/class_4717;method_53868()Lnet/minecraft/class_2561;
official b
Lfhj;b()Lxp;
-
clearWindow
public void clearWindow()- Mappings:
Namespace Name Mixin selector named clearWindow
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;clearWindow()V
intermediary method_44931
Lnet/minecraft/class_4717;method_44931()V
official c
Lfhj;c()V
-
sortSuggestions
private List<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions) - Mappings:
Namespace Name Mixin selector named sortSuggestions
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;sortSuggestions(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;
official a
Lfhj;a(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;
-
refresh
public void refresh()- Mappings:
Namespace Name Mixin selector named refresh
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;refresh()V
intermediary method_23934
Lnet/minecraft/class_4717;method_23934()V
official d
Lfhj;d()V
-
getStartOfCurrentWord
- Mappings:
Namespace Name Mixin selector named getStartOfCurrentWord
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getStartOfCurrentWord(Ljava/lang/String;)I
intermediary method_23930
Lnet/minecraft/class_4717;method_23930(Ljava/lang/String;)I
official a
Lfhj;a(Ljava/lang/String;)I
-
formatException
private static OrderedText formatException(com.mojang.brigadier.exceptions.CommandSyntaxException exception) - Mappings:
Namespace Name Mixin selector named formatException
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;formatException(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/text/OrderedText;
intermediary method_30505
Lnet/minecraft/class_4717;method_30505(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/class_5481;
official a
Lfhj;a(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Layl;
-
showCommandSuggestions
private void showCommandSuggestions()- Mappings:
Namespace Name Mixin selector named showCommandSuggestions
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;showCommandSuggestions()V
intermediary method_23937
Lnet/minecraft/class_4717;method_23937()V
official f
Lfhj;f()V
-
showUsages
- Mappings:
Namespace Name Mixin selector named showUsages
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;showUsages(Lnet/minecraft/util/Formatting;)Z
intermediary method_23929
Lnet/minecraft/class_4717;method_23929(Lnet/minecraft/class_124;)Z
official a
Lfhj;a(Ln;)Z
-
provideRenderText
- Mappings:
Namespace Name Mixin selector named provideRenderText
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;provideRenderText(Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
intermediary method_23931
Lnet/minecraft/class_4717;method_23931(Ljava/lang/String;I)Lnet/minecraft/class_5481;
official a
Lfhj;a(Ljava/lang/String;I)Layl;
-
getSuggestionSuffix
- Mappings:
Namespace Name Mixin selector named getSuggestionSuffix
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getSuggestionSuffix(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;
official a
Lfhj;a(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 named highlight
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;highlight(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
intermediary method_23925
Lnet/minecraft/class_4717;method_23925(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/class_5481;
official a
Lfhj;a(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Layl;
-
render
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;render(Lnet/minecraft/client/gui/DrawContext;II)V
intermediary method_23923
Lnet/minecraft/class_4717;method_23923(Lnet/minecraft/class_332;II)V
official a
Lfhj;a(Lfgt;II)V
-
tryRenderWindow
- Mappings:
Namespace Name Mixin selector named tryRenderWindow
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;tryRenderWindow(Lnet/minecraft/client/gui/DrawContext;II)Z
intermediary method_44933
Lnet/minecraft/class_4717;method_44933(Lnet/minecraft/class_332;II)Z
official b
Lfhj;b(Lfgt;II)Z
-
renderMessages
- Mappings:
Namespace Name Mixin selector named renderMessages
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;renderMessages(Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_44932
Lnet/minecraft/class_4717;method_44932(Lnet/minecraft/class_332;)V
official a
Lfhj;a(Lfgt;)V
-
getNarration
- Mappings:
Namespace Name Mixin selector named getNarration
Lnet/minecraft/client/gui/screen/ChatInputSuggestor;getNarration()Lnet/minecraft/text/Text;
intermediary method_23958
Lnet/minecraft/class_4717;method_23958()Lnet/minecraft/class_2561;
official e
Lfhj;e()Lxp;
-