类 CommandSuggestions
java.lang.Object
net.minecraft.client.gui.components.CommandSuggestions
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明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 pMinecraft, Screen pScreen, EditBox pInput, Font pFont, boolean pCommandsOnly, boolean pOnlyShowIfCursorPastError, int pLineStartOffset, int pSuggestionLineLimit, boolean pAnchorToBottom, int pFillColor) -
方法概要
修饰符和类型方法说明(专用程序包) static String
calculateSuggestionSuffix
(String pInputText, String pSuggestionText) private boolean
fillNodeUsage
(ChatFormatting pChatFormatting) private FormattedCharSequence
formatChat
(String p_93915_, int p_93916_) private static FormattedCharSequence
formatText
(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> pProvider, String pCommand, int pMaxLength) private static FormattedCharSequence
getExceptionMessage
(com.mojang.brigadier.exceptions.CommandSyntaxException pException) private static int
getLastWordIndex
(String pText) void
hide()
boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) boolean
mouseClicked
(double pMouseX, double pMouseY, int pMouseButton) boolean
mouseScrolled
(double pDelta) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) boolean
renderSuggestions
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) void
renderUsage
(GuiGraphics pGuiGraphics) void
setAllowSuggestions
(boolean pAutoSuggest) void
showSuggestions
(boolean pNarrateFirstSuggestion) private List<com.mojang.brigadier.suggestion.Suggestion>
sortSuggestions
(com.mojang.brigadier.suggestion.Suggestions pSuggestions) 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
-
-
构造器详细资料
-
CommandSuggestions
-
-
方法详细资料
-
setAllowSuggestions
public void setAllowSuggestions(boolean pAutoSuggest) -
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) -
mouseScrolled
public boolean mouseScrolled(double pDelta) -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pMouseButton) -
showSuggestions
public void showSuggestions(boolean pNarrateFirstSuggestion) -
hide
public void hide() -
sortSuggestions
private List<com.mojang.brigadier.suggestion.Suggestion> sortSuggestions(com.mojang.brigadier.suggestion.Suggestions pSuggestions) -
updateCommandInfo
public void updateCommandInfo() -
getLastWordIndex
-
getExceptionMessage
private static FormattedCharSequence getExceptionMessage(com.mojang.brigadier.exceptions.CommandSyntaxException pException) -
updateUsageInfo
private void updateUsageInfo() -
fillNodeUsage
-
formatChat
-
calculateSuggestionSuffix
-
formatText
private static FormattedCharSequence formatText(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> pProvider, String pCommand, int pMaxLength) -
render
-
renderSuggestions
-
renderUsage
-
getNarrationMessage
-