类 CommandSuggestions
java.lang.Object
net.minecraft.client.gui.components.CommandSuggestions
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private boolean
private boolean
(专用程序包) final boolean
private final boolean
private final List
<FormattedCharSequence> private int
private int
private com.mojang.brigadier.ParseResults
<SharedSuggestionProvider> (专用程序包) final int
(专用程序包) final Font
(专用程序包) final EditBox
(专用程序包) boolean
(专用程序包) final int
private static final Style
(专用程序包) final Minecraft
private final boolean
private CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> private final Screen
(专用程序包) final int
private static final Style
private static final Pattern
-
构造器概要
构造器构造器说明CommandSuggestions
(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_) -
方法概要
修饰符和类型方法说明(专用程序包) 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_301612_) 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
-
字段详细资料
-
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
-
-
构造器详细资料
-
CommandSuggestions
-
-
方法详细资料
-
setAllowSuggestions
public void setAllowSuggestions(boolean p_93923_) -
setAllowHiding
public void setAllowHiding(boolean p_301612_) -
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
-