net.minecraft.client.gui.components

public class CommandSuggestions

fox
net.minecraft.client.gui.components.CommandSuggestions
net.minecraft.class_4717
net.minecraft.client.gui.screen.ChatInputSuggestor

Field summary

Modifier and TypeField
private static final Pattern
a
WHITESPACE_PATTERN
field_21596
WHITESPACE_PATTERN
private static final Style
b
UNPARSED_STYLE
field_25885
ERROR_STYLE
private static final Style
c
LITERAL_STYLE
field_25886
INFO_STYLE
private static final List<Style>
d
ARGUMENT_STYLES
field_25887
HIGHLIGHT_STYLES
final Minecraft
e
minecraft
field_21597
client
private final Screen
f
screen
field_21598
owner
final EditBox
g
input
field_21599
textField
final Font
h
font
field_21600
textRenderer
private final boolean
i
commandsOnly
field_21601
slashOptional
private final boolean
j
onlyShowIfCursorPastError
field_21602
suggestingWhenEmpty
final int
k
lineStartOffset
field_21603
inWindowIndexOffset
final int
l
suggestionLineLimit
field_21604
maxSuggestionSize
final boolean
m
anchorToBottom
field_21605
chatScreenSized
final int
n
fillColor
field_21606
color
private final List<FormattedCharSequence>
o
commandUsage
field_21607
messages
private int
p
commandUsagePosition
field_21608
x
private int
q
commandUsageWidth
field_21609
width
private com.mojang.brigadier.ParseResults<SharedSuggestionProvider>
r
currentParse
field_21610
parse
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
s
pendingSuggestions
field_21611
pendingSuggestions
private CommandSuggestions$SuggestionsList
t
suggestions
field_21612
window
private boolean
u
allowSuggestions
field_21613
windowActive
boolean
v
keepSuggestions
field_21614
completingSuggestions
private boolean
w
allowHiding
field_46191
canLeave

Constructor summary

ModifierConstructor
public (Minecraft client, Screen owner, EditBox textField, Font textRenderer, boolean slashOptional, boolean suggestingWhenEmpty, int inWindowIndexOffset, int maxSuggestionSize, boolean chatScreenSized, int color)

Method summary

Modifier and TypeMethod
public void
a(boolean arg0)
setAllowSuggestions(boolean arg0)
method_23933(boolean arg0)
setWindowActive(boolean windowActive)
public void
b(boolean arg0)
setAllowHiding(boolean arg0)
method_53869(boolean arg0)
setCanLeave(boolean canLeave)
public boolean
a(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
method_23924(int arg0, int arg1, int arg2)
keyPressed(int keyCode, int scanCode, int modifiers)
public boolean
a(double arg0)
mouseScrolled(double arg0)
method_23921(double arg0)
mouseScrolled(double amount)
public boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_23922(double arg0, double arg1, int arg2)
mouseClicked(double mouseX, double mouseY, int button)
public void
c(boolean arg0)
showSuggestions(boolean arg0)
method_23920(boolean arg0)
show(boolean narrateFirstSuggestion)
public boolean
a()
isVisible()
method_53867()
isOpen()
public Component
b()
getUsageNarration()
method_53868()
getSuggestionUsageNarrationText()
public void
c()
hide()
method_44931()
clearWindow()
private List<com.mojang.brigadier.suggestion.Suggestion>
a(com.mojang.brigadier.suggestion.Suggestions arg0)
sortSuggestions(com.mojang.brigadier.suggestion.Suggestions arg0)
method_30104(com.mojang.brigadier.suggestion.Suggestions arg0)
sortSuggestions(com.mojang.brigadier.suggestion.Suggestions suggestions)
public void
d()
updateCommandInfo()
method_23934()
refresh()
private static int
a(String arg0)
getLastWordIndex(String arg0)
method_23930(String arg0)
getStartOfCurrentWord(String input)
private static FormattedCharSequence
a(com.mojang.brigadier.exceptions.CommandSyntaxException arg0)
getExceptionMessage(com.mojang.brigadier.exceptions.CommandSyntaxException arg0)
method_30505(com.mojang.brigadier.exceptions.CommandSyntaxException arg0)
formatException(com.mojang.brigadier.exceptions.CommandSyntaxException exception)
private void
f()
updateUsageInfo()
method_23937()
showCommandSuggestions()
private boolean
a(n arg0)
fillNodeUsage(ChatFormatting arg0)
method_23929(class_124 arg0)
showUsages(Formatting formatting)
private FormattedCharSequence
a(String arg0, int arg1)
formatChat(String arg0, int arg1)
method_23931(String arg0, int arg1)
provideRenderText(String original, int firstCharacterIndex)
static String
a(String arg0, String arg1)
calculateSuggestionSuffix(String arg0, String arg1)
method_23936(String arg0, String arg1)
getSuggestionSuffix(String original, String suggestion)
private static FormattedCharSequence
a(com.mojang.brigadier.ParseResults<fc> arg0, String arg1, int arg2)
formatText(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> arg0, String arg1, int arg2)
method_23925(com.mojang.brigadier.ParseResults<class_2172> arg0, String arg1, int arg2)
highlight(com.mojang.brigadier.ParseResults<CommandSource> parse, String original, int firstCharacterIndex)
public void
a(fof arg0, int arg1, int arg2)
render(GuiGraphics arg0, int arg1, int arg2)
method_23923(class_332 arg0, int arg1, int arg2)
render(DrawContext context, int mouseX, int mouseY)
public boolean
b(fof arg0, int arg1, int arg2)
renderSuggestions(GuiGraphics arg0, int arg1, int arg2)
method_44933(class_332 arg0, int arg1, int arg2)
tryRenderWindow(DrawContext context, int mouseX, int mouseY)
public void
a(fof arg0)
renderUsage(GuiGraphics arg0)
method_44932(class_332 arg0)
renderMessages(DrawContext context)
public Component
e()
getNarrationMessage()
method_23958()
getNarration()