net.minecraft.client.gui.components

public class CommandSuggestions

dcw
net.minecraft.client.gui.components.CommandSuggestions
net.minecraft.class_4717
net.minecraft.client.gui.screen.CommandSuggestor
net.minecraft.client.gui.CommandSuggestionHelper

Field summary

Modifier and TypeField
private static final Pattern
a
WHITESPACE_PATTERN
field_21596
BACKSLASH_S_PATTERN
field_228092_a_
private final Minecraft
b
minecraft
field_21597
client
field_228093_b_
private final Screen
c
screen
field_21598
owner
field_228094_c_
private final EditBox
d
input
field_21599
textField
field_228095_d_
private final Font
e
font
field_21600
textRenderer
field_228096_e_
private final boolean
f
commandsOnly
field_21601
slashRequired
field_228097_f_
private final boolean
g
onlyShowIfCursorPastError
field_21602
suggestingWhenEmpty
field_228098_g_
private final int
h
lineStartOffset
field_21603
inWindowIndexOffset
field_228099_h_
private final int
i
suggestionLineLimit
field_21604
maxSuggestionSize
field_228100_i_
private final boolean
j
anchorToBottom
field_21605
chatScreenSized
field_228101_j_
private final int
k
fillColor
field_21606
color
field_228102_k_
private final List<String>
l
commandUsage
field_21607
messages
field_228103_l_
private int
m
commandUsagePosition
field_21608
x
field_228104_m_
private int
n
commandUsageWidth
field_21609
width
field_228105_n_
private com.mojang.brigadier.ParseResults<SharedSuggestionProvider>
o
currentParse
field_21610
parse
field_228106_o_
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
p
pendingSuggestions
field_21611
pendingSuggestions
field_228107_p_
private CommandSuggestions$SuggestionsList
q
suggestions
field_21612
window
field_228108_q_
private boolean
r
allowSuggestions
field_21613
windowActive
field_228109_r_
private boolean
s
keepSuggestions
field_21614
completingSuggestions
field_228110_s_

Constructor summary

ModifierConstructor
public (Minecraft client, Screen owner, EditBox textField, Font textRenderer, boolean slashRequired, 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)
func_228124_a_(boolean arg0)
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)
func_228115_a_(int arg0, int arg1, int arg2)
public boolean
a(double arg0)
mouseScrolled(double arg0)
method_23921(double arg0)
mouseScrolled(double amount)
func_228112_a_(double arg0)
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)
func_228113_a_(double arg0, double arg1, int arg2)
public void
b(boolean arg0)
showSuggestions(boolean arg0)
method_23920(boolean arg0)
showSuggestions(boolean narrateFirstSuggestion)
func_228128_b_(boolean arg0)
public void
a()
updateCommandInfo()
method_23934()
refresh()
func_228111_a_()
private static int
a(String arg0)
getLastWordIndex(String arg0)
method_23930(String arg0)
getLastPlayerNameStart(String input)
func_228121_a_(String arg0)
public void
b()
updateUsageInfo()
method_23937()
show()
func_228125_b_()
private void
a(g arg0)
fillNodeUsage(ChatFormatting arg0)
method_23929(class_124 arg0)
showUsages(Formatting formatting)
func_228120_a_(TextFormatting arg0)
private String
a(String arg0, int arg1)
formatChat(String arg0, int arg1)
method_23931(String arg0, int arg1)
provideRenderText(String original, int firstCharacterIndex)
func_228122_a_(String arg0, int arg1)
private static String
b(String arg0, String arg1)
calculateSuggestionSuffix(String arg0, String arg1)
method_23936(String arg0, String arg1)
getSuggestionSuffix(String original, String suggestion)
func_228127_b_(String arg0, String arg1)
public static String
a(com.mojang.brigadier.ParseResults<cs> 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)
func_228116_a_(com.mojang.brigadier.ParseResults<ISuggestionProvider> arg0, String arg1, int arg2)
public void
a(int arg0, int arg1)
render(int arg0, int arg1)
method_23923(int arg0, int arg1)
render(int mouseX, int mouseY)
func_228114_a_(int arg0, int arg1)
public String
c()
getNarrationMessage()
method_23958()
func_228129_c_()