Class CommandSuggestions
java.lang.Object
net.minecraft.client.gui.components.CommandSuggestions
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
(package private) boolean
private boolean
private List<FormattedCharSequence>
private int
private int
private com.mojang.brigadier.ParseResults<SharedSuggestionProvider>
(package private) int
(package private) Font
(package private) EditBox
(package private) boolean
(package private) int
private static Style
(package private) Minecraft
private boolean
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
(package private) Screen
(package private) int
(package private) CommandSuggestions.SuggestionsList
private static Style
private static 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 void
fillNodeUsage(ChatFormatting p_93921_)
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_)
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
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
-
-
Constructor Details
-
CommandSuggestions
-
-
Method Details
-
setAllowSuggestions
public void setAllowSuggestions(boolean p_93923_) -
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_) -
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
-
getNarrationMessage
-