Package net.minecraft.client.gui.screen
Class CommandSuggestor
java.lang.Object
net.minecraft.client.gui.screen.CommandSuggestor
- Mappings:
Namespace Name official egsintermediary net/minecraft/class_4717named net/minecraft/client/gui/screen/CommandSuggestor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final MinecraftClient(package private) final int(package private) booleanprivate static final Styleprivate static final Style(package private) final int(package private) final intprivate final List<OrderedText>(package private) final Screenprivate @Nullable com.mojang.brigadier.ParseResults<CommandSource>private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>private final booleanprivate final boolean(package private) final TextFieldWidget(package private) final TextRendererprivate static final Patternprivate int(package private) @Nullable CommandSuggestor.SuggestionWindowprivate booleanprivate int -
Constructor Summary
ConstructorsConstructorDescriptionCommandSuggestor(MinecraftClient client, Screen owner, TextFieldWidget textField, TextRenderer textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color) -
Method Summary
Modifier and TypeMethodDescriptionprivate static OrderedTextformatException(com.mojang.brigadier.exceptions.CommandSyntaxException exception) private static intgetStartOfCurrentWord(String input) getSuggestionSuffix(String original, String suggestion) private static OrderedTexthighlight(com.mojang.brigadier.ParseResults<CommandSource> parse, String original, int firstCharacterIndex) booleankeyPressed(int keyCode, int scanCode, int modifiers) @Nullable com.mojang.brigadier.tree.CommandNode<CommandSource>method_44277(int int2) private static <S> @Nullable com.mojang.brigadier.tree.CommandNode<S>method_44278(int int2, com.mojang.brigadier.context.CommandContextBuilder<S> commandContextBuilder) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseScrolled(double amount) private OrderedTextprovideRenderText(String original, int firstCharacterIndex) voidrefresh()voidrender(MatrixStack matrices, int mouseX, int mouseY) voidsetWindowActive(boolean windowActive) private voidshow()voidshowSuggestions(boolean narrateFirstSuggestion) private voidshowUsages(Formatting formatting) private List<com.mojang.brigadier.suggestion.Suggestion>sortSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
-
Field Details
-
WHITESPACE_PATTERN
- Mappings:
Namespace Name Mixin selector official aLegs;a:Ljava/util/regex/Pattern;intermediary field_21596Lnet/minecraft/class_4717;field_21596:Ljava/util/regex/Pattern;named WHITESPACE_PATTERNLnet/minecraft/client/gui/screen/CommandSuggestor;WHITESPACE_PATTERN:Ljava/util/regex/Pattern;
-
ERROR_STYLE
- Mappings:
Namespace Name Mixin selector official bLegs;b:Lrv;intermediary field_25885Lnet/minecraft/class_4717;field_25885:Lnet/minecraft/class_2583;named ERROR_STYLELnet/minecraft/client/gui/screen/CommandSuggestor;ERROR_STYLE:Lnet/minecraft/text/Style;
-
INFO_STYLE
- Mappings:
Namespace Name Mixin selector official cLegs;c:Lrv;intermediary field_25886Lnet/minecraft/class_4717;field_25886:Lnet/minecraft/class_2583;named INFO_STYLELnet/minecraft/client/gui/screen/CommandSuggestor;INFO_STYLE:Lnet/minecraft/text/Style;
-
HIGHLIGHT_STYLES
- Mappings:
Namespace Name Mixin selector official dLegs;d:Ljava/util/List;intermediary field_25887Lnet/minecraft/class_4717;field_25887:Ljava/util/List;named HIGHLIGHT_STYLESLnet/minecraft/client/gui/screen/CommandSuggestor;HIGHLIGHT_STYLES:Ljava/util/List;
-
client
- Mappings:
Namespace Name Mixin selector official eLegs;e:Lees;intermediary field_21597Lnet/minecraft/class_4717;field_21597:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/screen/CommandSuggestor;client:Lnet/minecraft/client/MinecraftClient;
-
owner
- Mappings:
Namespace Name Mixin selector official fLegs;f:Lekg;intermediary field_21598Lnet/minecraft/class_4717;field_21598:Lnet/minecraft/class_437;named ownerLnet/minecraft/client/gui/screen/CommandSuggestor;owner:Lnet/minecraft/client/gui/screen/Screen;
-
textField
- Mappings:
Namespace Name Mixin selector official gLegs;g:Legx;intermediary field_21599Lnet/minecraft/class_4717;field_21599:Lnet/minecraft/class_342;named textFieldLnet/minecraft/client/gui/screen/CommandSuggestor;textField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
textRenderer
- Mappings:
Namespace Name Mixin selector official hLegs;h:Lefy;intermediary field_21600Lnet/minecraft/class_4717;field_21600:Lnet/minecraft/class_327;named textRendererLnet/minecraft/client/gui/screen/CommandSuggestor;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
slashOptional
private final boolean slashOptional- Mappings:
Namespace Name Mixin selector official iLegs;i:Zintermediary field_21601Lnet/minecraft/class_4717;field_21601:Znamed slashOptionalLnet/minecraft/client/gui/screen/CommandSuggestor;slashOptional:Z
-
suggestingWhenEmpty
private final boolean suggestingWhenEmpty- Mappings:
Namespace Name Mixin selector official jLegs;j:Zintermediary field_21602Lnet/minecraft/class_4717;field_21602:Znamed suggestingWhenEmptyLnet/minecraft/client/gui/screen/CommandSuggestor;suggestingWhenEmpty:Z
-
inWindowIndexOffset
final int inWindowIndexOffset- Mappings:
Namespace Name Mixin selector official kLegs;k:Iintermediary field_21603Lnet/minecraft/class_4717;field_21603:Inamed inWindowIndexOffsetLnet/minecraft/client/gui/screen/CommandSuggestor;inWindowIndexOffset:I
-
maxSuggestionSize
final int maxSuggestionSize- Mappings:
Namespace Name Mixin selector official lLegs;l:Iintermediary field_21604Lnet/minecraft/class_4717;field_21604:Inamed maxSuggestionSizeLnet/minecraft/client/gui/screen/CommandSuggestor;maxSuggestionSize:I
-
chatScreenSized
final boolean chatScreenSized- Mappings:
Namespace Name Mixin selector official mLegs;m:Zintermediary field_21605Lnet/minecraft/class_4717;field_21605:Znamed chatScreenSizedLnet/minecraft/client/gui/screen/CommandSuggestor;chatScreenSized:Z
-
color
final int color- Mappings:
Namespace Name Mixin selector official nLegs;n:Iintermediary field_21606Lnet/minecraft/class_4717;field_21606:Inamed colorLnet/minecraft/client/gui/screen/CommandSuggestor;color:I
-
messages
- Mappings:
Namespace Name Mixin selector official oLegs;o:Ljava/util/List;intermediary field_21607Lnet/minecraft/class_4717;field_21607:Ljava/util/List;named messagesLnet/minecraft/client/gui/screen/CommandSuggestor;messages:Ljava/util/List;
-
x
private int x- Mappings:
Namespace Name Mixin selector official pLegs;p:Iintermediary field_21608Lnet/minecraft/class_4717;field_21608:Inamed xLnet/minecraft/client/gui/screen/CommandSuggestor;x:I
-
width
private int width- Mappings:
Namespace Name Mixin selector official qLegs;q:Iintermediary field_21609Lnet/minecraft/class_4717;field_21609:Inamed widthLnet/minecraft/client/gui/screen/CommandSuggestor;width:I
-
parse
- Mappings:
Namespace Name Mixin selector official rLegs;r:Lcom/mojang/brigadier/ParseResults;intermediary field_21610Lnet/minecraft/class_4717;field_21610:Lcom/mojang/brigadier/ParseResults;named parseLnet/minecraft/client/gui/screen/CommandSuggestor;parse:Lcom/mojang/brigadier/ParseResults;
-
pendingSuggestions
@Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingSuggestions- Mappings:
Namespace Name Mixin selector official sLegs;s:Ljava/util/concurrent/CompletableFuture;intermediary field_21611Lnet/minecraft/class_4717;field_21611:Ljava/util/concurrent/CompletableFuture;named pendingSuggestionsLnet/minecraft/client/gui/screen/CommandSuggestor;pendingSuggestions:Ljava/util/concurrent/CompletableFuture;
-
window
- Mappings:
Namespace Name Mixin selector official tLegs;t:Legs$a;intermediary field_21612Lnet/minecraft/class_4717;field_21612:Lnet/minecraft/class_4717$class_464;named windowLnet/minecraft/client/gui/screen/CommandSuggestor;window:Lnet/minecraft/client/gui/screen/CommandSuggestor$SuggestionWindow;
-
windowActive
private boolean windowActive- Mappings:
Namespace Name Mixin selector official uLegs;u:Zintermediary field_21613Lnet/minecraft/class_4717;field_21613:Znamed windowActiveLnet/minecraft/client/gui/screen/CommandSuggestor;windowActive:Z
-
completingSuggestions
boolean completingSuggestions- Mappings:
Namespace Name Mixin selector official vLegs;v:Zintermediary field_21614Lnet/minecraft/class_4717;field_21614:Znamed completingSuggestionsLnet/minecraft/client/gui/screen/CommandSuggestor;completingSuggestions:Z
-
-
Constructor Details
-
CommandSuggestor
public CommandSuggestor(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>Legs;<init>(Lees;Lekg;Legx;Lefy;ZZIIZI)Vintermediary <init>Lnet/minecraft/class_4717;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_437;Lnet/minecraft/class_342;Lnet/minecraft/class_327;ZZIIZI)Vnamed <init>Lnet/minecraft/client/gui/screen/CommandSuggestor;<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 aLegs;a(Z)Vintermediary method_23933Lnet/minecraft/class_4717;method_23933(Z)Vnamed setWindowActiveLnet/minecraft/client/gui/screen/CommandSuggestor;setWindowActive(Z)V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) - Mappings:
Namespace Name Mixin selector official aLegs;a(III)Zintermediary method_23924Lnet/minecraft/class_4717;method_23924(III)Znamed keyPressedLnet/minecraft/client/gui/screen/CommandSuggestor;keyPressed(III)Z
-
mouseScrolled
public boolean mouseScrolled(double amount) - Mappings:
Namespace Name Mixin selector official aLegs;a(D)Zintermediary method_23921Lnet/minecraft/class_4717;method_23921(D)Znamed mouseScrolledLnet/minecraft/client/gui/screen/CommandSuggestor;mouseScrolled(D)Z
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Mappings:
Namespace Name Mixin selector official aLegs;a(DDI)Zintermediary method_23922Lnet/minecraft/class_4717;method_23922(DDI)Znamed mouseClickedLnet/minecraft/client/gui/screen/CommandSuggestor;mouseClicked(DDI)Z
-
showSuggestions
public void showSuggestions(boolean narrateFirstSuggestion) - Mappings:
Namespace Name Mixin selector official bLegs;b(Z)Vintermediary method_23920Lnet/minecraft/class_4717;method_23920(Z)Vnamed showSuggestionsLnet/minecraft/client/gui/screen/CommandSuggestor;showSuggestions(Z)V
-
sortSuggestions
private List<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions) - Mappings:
Namespace Name Mixin selector official aLegs;a(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;intermediary method_30104Lnet/minecraft/class_4717;method_30104(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;named sortSuggestionsLnet/minecraft/client/gui/screen/CommandSuggestor;sortSuggestions(Lcom/mojang/brigadier/suggestion/Suggestions;)Ljava/util/List;
-
refresh
public void refresh()- Mappings:
Namespace Name Mixin selector official aLegs;a()Vintermediary method_23934Lnet/minecraft/class_4717;method_23934()Vnamed refreshLnet/minecraft/client/gui/screen/CommandSuggestor;refresh()V
-
getStartOfCurrentWord
- Mappings:
Namespace Name Mixin selector official aLegs;a(Ljava/lang/String;)Iintermediary method_23930Lnet/minecraft/class_4717;method_23930(Ljava/lang/String;)Inamed getStartOfCurrentWordLnet/minecraft/client/gui/screen/CommandSuggestor;getStartOfCurrentWord(Ljava/lang/String;)I
-
formatException
private static OrderedText formatException(com.mojang.brigadier.exceptions.CommandSyntaxException exception) - Mappings:
Namespace Name Mixin selector official aLegs;a(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lalc;intermediary method_30505Lnet/minecraft/class_4717;method_30505(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/class_5481;named formatExceptionLnet/minecraft/client/gui/screen/CommandSuggestor;formatException(Lcom/mojang/brigadier/exceptions/CommandSyntaxException;)Lnet/minecraft/text/OrderedText;
-
show
private void show()- Mappings:
Namespace Name Mixin selector official cLegs;c()Vintermediary method_23937Lnet/minecraft/class_4717;method_23937()Vnamed showLnet/minecraft/client/gui/screen/CommandSuggestor;show()V
-
showUsages
- Mappings:
Namespace Name Mixin selector official aLegs;a(Lp;)Vintermediary method_23929Lnet/minecraft/class_4717;method_23929(Lnet/minecraft/class_124;)Vnamed showUsagesLnet/minecraft/client/gui/screen/CommandSuggestor;showUsages(Lnet/minecraft/util/Formatting;)V
-
provideRenderText
- Mappings:
Namespace Name Mixin selector official aLegs;a(Ljava/lang/String;I)Lalc;intermediary method_23931Lnet/minecraft/class_4717;method_23931(Ljava/lang/String;I)Lnet/minecraft/class_5481;named provideRenderTextLnet/minecraft/client/gui/screen/CommandSuggestor;provideRenderText(Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
-
getSuggestionSuffix
- Mappings:
Namespace Name Mixin selector official aLegs;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;intermediary method_23936Lnet/minecraft/class_4717;method_23936(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;named getSuggestionSuffixLnet/minecraft/client/gui/screen/CommandSuggestor;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 aLegs;a(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lalc;intermediary method_23925Lnet/minecraft/class_4717;method_23925(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/class_5481;named highlightLnet/minecraft/client/gui/screen/CommandSuggestor;highlight(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;I)Lnet/minecraft/text/OrderedText;
-
render
- Mappings:
Namespace Name Mixin selector official aLegs;a(Ldzq;II)Vintermediary method_23923Lnet/minecraft/class_4717;method_23923(Lnet/minecraft/class_4587;II)Vnamed renderLnet/minecraft/client/gui/screen/CommandSuggestor;render(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
getNarration
- Mappings:
Namespace Name Mixin selector official bLegs;b()Ljava/lang/String;intermediary method_23958Lnet/minecraft/class_4717;method_23958()Ljava/lang/String;named getNarrationLnet/minecraft/client/gui/screen/CommandSuggestor;getNarration()Ljava/lang/String;
-
method_44277
@Nullable public @Nullable com.mojang.brigadier.tree.CommandNode<CommandSource> method_44277(int int2) - Mappings:
Namespace Name Mixin selector official aLegs;a(I)Lcom/mojang/brigadier/tree/CommandNode;intermediary method_44277Lnet/minecraft/class_4717;method_44277(I)Lcom/mojang/brigadier/tree/CommandNode;named method_44277Lnet/minecraft/client/gui/screen/CommandSuggestor;method_44277(I)Lcom/mojang/brigadier/tree/CommandNode;
-
method_44278
@Nullable private static <S> @Nullable com.mojang.brigadier.tree.CommandNode<S> method_44278(int int2, com.mojang.brigadier.context.CommandContextBuilder<S> commandContextBuilder) - Mappings:
Namespace Name Mixin selector official aLegs;a(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;intermediary method_44278Lnet/minecraft/class_4717;method_44278(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;named method_44278Lnet/minecraft/client/gui/screen/CommandSuggestor;method_44278(ILcom/mojang/brigadier/context/CommandContextBuilder;)Lcom/mojang/brigadier/tree/CommandNode;
-