Class CommandSuggestions
java.lang.Object
net.minecraft.client.gui.components.CommandSuggestions
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
(package private) final boolean
private final boolean
private final List<FormattedCharSequence>
private int
private int
private com.mojang.brigadier.ParseResults<SharedSuggestionProvider>
(package private) final int
(package private) final Font
(package private) final EditBox
(package private) boolean
(package private) final int
private static final Style
(package private) final Minecraft
private final boolean
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
private final Screen
(package private) final int
private static final Style
private static final Pattern
-
Constructor Summary
ConstructorDescriptionCommandSuggestions
(Minecraft p_93871_, Screen p_93872_, EditBox p_93873_, Font p_93874_, boolean p_93875_, boolean p_93876_, int p_93877_, int p_93878_, boolean p_93879_, int p_93880_) -
Method Summary
Modifier and TypeMethodDescription(package private) static String
calculateSuggestionSuffix
(String p_93928_, String p_93929_) private boolean
fillNodeUsage
(ChatFormatting p_289002_) private FormattedCharSequence
formatChat
(String p_93915_, int p_93916_) private static FormattedCharSequence
formatText
(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> p_93893_, String p_93894_, int p_93895_) private static FormattedCharSequence
getExceptionMessage
(com.mojang.brigadier.exceptions.CommandSyntaxException p_93897_) private static int
getLastWordIndex
(String p_93913_) void
hide()
boolean
boolean
keyPressed
(int p_93889_, int p_93890_, int p_93891_) boolean
mouseClicked
(double p_93885_, double p_93886_, int p_93887_) boolean
mouseScrolled
(double p_93883_) void
render
(GuiGraphics p_282650_, int p_282266_, int p_281963_) boolean
renderSuggestions
(GuiGraphics p_283503_, int p_281628_, int p_282260_) void
renderUsage
(GuiGraphics p_282763_) void
setAllowHiding
(boolean p_302228_) void
setAllowSuggestions
(boolean p_93923_) void
showSuggestions
(boolean p_93931_) private List<com.mojang.brigadier.suggestion.Suggestion>
sortSuggestions
(com.mojang.brigadier.suggestion.Suggestions p_93899_) void
private void
-
Field Details
-
WHITESPACE_PATTERN
-
UNPARSED_STYLE
-
LITERAL_STYLE
-
ARGUMENT_STYLES
-
minecraft
-
screen
-
input
-
font
-
commandsOnly
private final boolean commandsOnly -
onlyShowIfCursorPastError
private final boolean onlyShowIfCursorPastError -
lineStartOffset
final int lineStartOffset -
suggestionLineLimit
final int suggestionLineLimit -
anchorToBottom
final boolean anchorToBottom -
fillColor
final int fillColor -
commandUsage
-
commandUsagePosition
private int commandUsagePosition -
commandUsageWidth
private int commandUsageWidth -
currentParse
-
pendingSuggestions
-
suggestions
-
allowSuggestions
private boolean allowSuggestions -
keepSuggestions
boolean keepSuggestions -
allowHiding
private boolean allowHiding
-
-
Constructor Details
-
CommandSuggestions
-
-
Method Details
-
setAllowSuggestions
public void setAllowSuggestions(boolean p_93923_) -
setAllowHiding
public void setAllowHiding(boolean p_302228_) -
keyPressed
public boolean keyPressed(int p_93889_, int p_93890_, int p_93891_) -
mouseScrolled
public boolean mouseScrolled(double p_93883_) -
mouseClicked
public boolean mouseClicked(double p_93885_, double p_93886_, int p_93887_) -
showSuggestions
public void showSuggestions(boolean p_93931_) -
isVisible
public boolean isVisible() -
getUsageNarration
-
hide
public void hide() -
sortSuggestions
private List<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions(com.mojang.brigadier.suggestion.Suggestions p_93899_) -
updateCommandInfo
public void updateCommandInfo() -
getLastWordIndex
-
getExceptionMessage
private static FormattedCharSequence getExceptionMessage(com.mojang.brigadier.exceptions.CommandSyntaxException p_93897_) -
updateUsageInfo
private void updateUsageInfo() -
fillNodeUsage
-
formatChat
-
calculateSuggestionSuffix
-
formatText
private static FormattedCharSequence formatText(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> p_93893_, String p_93894_, int p_93895_) -
render
-
renderSuggestions
-
renderUsage
-
getNarrationMessage
-