net.minecraft.client.gui.components

public class EditBox

extends AbstractWidget implements Widget, GuiEventListener

All mapped superinterfaces:

Widget, GuiEventListener, NarratableEntry, NarrationSupplier

ehx
net.minecraft.client.gui.components.EditBox
net.minecraft.class_342
net.minecraft.unmapped.C_vopzcnhf
net.minecraft.client.gui.widget.TextFieldWidget
net.minecraft.client.gui.widget.TextFieldWidget
net.minecraft.src.C_3464_

Field summary

Modifier and TypeField
public static final int
a
BACKWARDS
field_32194
f_kwetnhqz
field_32194
BACKWARDS
f_168999_
public static final int
b
FORWARDS
field_32195
f_cmnauqqj
field_32195
FORWARDS
f_169000_
private static final int
d
CURSOR_INSERT_WIDTH
field_32197
f_gizvhnzb
field_32197
INSERT_CURSOR_WIDTH
f_169002_
private static final int
e
CURSOR_INSERT_COLOR
field_32198
f_ehdqdocj
VERTICAL_CURSOR_COLOR
INSERT_CURSOR_COLOR
f_169003_
private static final String
f
CURSOR_APPEND_CHARACTER
field_32199
f_litpeqel
HORIZONTAL_CURSOR
UNDERSCORE
f_169004_
public static final int
c
DEFAULT_TEXT_COLOR
field_32196
f_kwuxvwmh
DEFAULT_EDITABLE_COLOR
DEFAULT_EDITABLE_COLOR
f_169001_
private static final int
s
BORDER_COLOR_FOCUSED
field_32201
f_etbuuexw
field_32201
BORDER_COLOR_FOCUSED
f_169005_
private static final int
t
BORDER_COLOR
field_32202
f_uacbcygj
BORDER_COLOR
BORDER_COLOR
f_169006_
private static final int
u
BACKGROUND_COLOR
field_32203
f_hhuhbjwm
BACKGROUND_COLOR
BACKGROUND_COLOR
f_169007_
private final Font
v
font
field_2105
f_txtjhjhm
textRenderer
textRenderer
f_94092_
private String
w
value
field_2092
f_rpfmfdmz
text
text
f_94093_
private int
x
maxLength
field_2108
f_phzgdoou
maxLength
maxLength
f_94094_
private int
y
frame
field_2107
f_mwsrzrff
focusedTicks
focusedTicks
f_94095_
private boolean
z
bordered
field_2095
f_gcohdxnw
drawsBackground
drawsBackground
f_94096_
private boolean
A
canLoseFocus
field_2096
f_imtjinqy
focusUnlocked
focusUnlocked
f_94097_
private boolean
B
isEditable
field_2094
f_zsmogpnp
editable
editable
f_94098_
private boolean
C
shiftPressed
field_17037
f_clmmxjdh
selecting
selecting
f_94099_
private int
D
displayPos
field_2103
f_qftlxopl
firstCharacterIndex
firstCharacterIndex
f_94100_
private int
E
cursorPos
field_2102
f_yfmhkwpd
selectionStart
selectionStart
f_94101_
private int
F
highlightPos
field_2101
f_aaxlfqis
selectionEnd
selectionEnd
f_94102_
private int
G
textColor
field_2100
f_umkngaml
editableColor
editableColor
f_94103_
private int
H
textColorUneditable
field_2098
f_gyakfjgb
uneditableColor
uneditableColor
f_94104_
private String
I
suggestion
field_2106
f_nntrwhcq
suggestion
suggestion
f_94088_
private Consumer<String>
J
responder
field_2088
f_avkvsjop
changedListener
changedListener
f_94089_
private Predicate<String>
K
filter
field_2104
f_lvwcxqgr
textPredicate
textPredicate
f_94090_
private BiFunction<String, Integer, FormattedCharSequence>
L
formatter
field_2099
f_sgjqcrpx
renderTextProvider
renderTextProvider
f_94091_

Constructor summary

ModifierConstructor
public (Font textRenderer, int x, int y, int width, int height, Component text)
public (Font textRenderer, int x, int y, int width, int height, EditBox copyFrom, Component text)

Method summary

Modifier and TypeMethod
public void
a(Consumer<String> arg0)
setResponder(Consumer<String> arg0)
method_1863(Consumer<String> arg0)
m_oxpezltp(Consumer<String> arg0)
setChangedListener(Consumer<String> changedListener)
setChangedListener(Consumer<String> changedListener)
m_94151_(Consumer<String> arg0)
public void
a(BiFunction<String, Integer, alu> arg0)
setFormatter(BiFunction<String, Integer, FormattedCharSequence> arg0)
method_1854(BiFunction<String, Integer, class_5481> arg0)
m_xnoxuhhd(BiFunction<String, Integer, C_apvkgwyi> arg0)
setRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider)
setRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider)
m_94149_(BiFunction<String, Integer, C_178_> arg0)
public void
a()
tick()
method_1865()
m_copwuzzr()
tick()
tick()
m_94120_()
protected MutableComponent
ai_()
createNarrationMessage()
method_25360()
m_sjpjzqmc()
getNarrationMessage()
getNarrationMessage()
m_5646_()
public void
a(String arg0)
setValue(String arg0)
method_1852(String arg0)
m_gvkbvqth(String arg0)
setText(String text)
setText(String text)
m_94144_(String arg0)
public String
b()
getValue()
method_1882()
m_irwzzxjx()
getText()
getText()
m_94155_()
public String
c()
getHighlighted()
method_1866()
m_pmahxude()
getSelectedText()
getSelectedText()
m_94173_()
public void
a(Predicate<String> arg0)
setFilter(Predicate<String> arg0)
method_1890(Predicate<String> arg0)
m_rgmfgplh(Predicate<String> arg0)
setTextPredicate(Predicate<String> textPredicate)
setTextPredicate(Predicate<String> textPredicate)
m_94153_(Predicate<String> arg0)
public void
b(String arg0)
insertText(String arg0)
method_1867(String arg0)
m_dzvzpjnb(String arg0)
write(String text)
write(String text)
m_94164_(String arg0)
private void
d(String arg0)
onValueChange(String arg0)
method_1874(String arg0)
m_pbgvkuzx(String arg0)
onChanged(String newText)
onChanged(String newText)
m_94174_(String arg0)
private void
p(int arg0)
deleteText(int arg0)
method_16873(int arg0)
m_rykikfaw(int arg0)
erase(int offset)
erase(int offset)
m_94217_(int arg0)
public void
c(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
m_mtfwlmsz(int arg0)
eraseWords(int wordOffset)
eraseWords(int wordOffset)
m_94176_(int arg0)
public void
e(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
m_ujpapjrq(int arg0)
eraseCharacters(int characterOffset)
eraseCharacters(int characterOffset)
m_94180_(int arg0)
public int
f(int arg0)
getWordPosition(int arg0)
method_1853(int arg0)
m_zqejgyzq(int arg0)
getWordSkipPosition(int wordOffset)
getWordSkipPosition(int wordOffset)
m_94184_(int arg0)
private int
a(int arg0, int arg1)
getWordPosition(int arg0, int arg1)
method_1869(int arg0, int arg1)
m_gchqdqaw(int arg0, int arg1)
getWordSkipPosition(int wordOffset, int cursorPosition)
getWordSkipPosition(int wordOffset, int cursorPosition)
m_94128_(int p_94130_, int arg1)
private int
a(int arg0, int arg1, boolean arg2)
getWordPosition(int arg0, int arg1, boolean arg2)
method_1864(int arg0, int arg1, boolean arg2)
m_hwgfkeoe(int arg0, int arg1, boolean arg2)
getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces)
getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces)
m_94140_(int p_94142_, int p_94143_, boolean arg2)
public void
g(int arg0)
moveCursor(int arg0)
method_1855(int arg0)
m_tbulvwaj(int arg0)
moveCursor(int offset)
moveCursor(int offset)
m_94188_(int arg0)
private int
q(int arg0)
getCursorPos(int arg0)
method_27537(int arg0)
m_wjankemy(int arg0)
getCursorPosWithOffset(int offset)
getCursorPosWithOffset(int offset)
m_94220_(int arg0)
public void
h(int arg0)
moveCursorTo(int arg0)
method_1883(int arg0)
m_dsrbkblb(int arg0)
setCursor(int cursor)
setCursor(int cursor)
m_94192_(int arg0)
public void
i(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
m_znwffnoe(int arg0)
setSelectionStart(int cursor)
setSelectionStart(int cursor)
m_94196_(int arg0)
public void
e()
moveCursorToStart()
method_1870()
m_uamercht()
setCursorToStart()
setCursorToStart()
m_94198_()
public void
f()
moveCursorToEnd()
method_1872()
m_zxclplhg()
setCursorToEnd()
setCursorToEnd()
m_94201_()
public boolean
a(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
method_25404(int arg0, int arg1, int arg2)
m_qwrbtcbl(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
m_7933_(int p_94133_, int p_94134_, int arg2)
public boolean
g()
canConsumeInput()
method_20315()
m_griyofun()
isActive()
isActive()
m_94204_()
public boolean
a(char arg0, int arg1)
charTyped(char arg0, int arg1)
method_25400(char arg0, int arg1)
m_jstdhuev(char arg0, int arg1)
charTyped(char arg0, int arg1)
charTyped(char arg0, int arg1)
m_5534_(char p_94123_, int arg1)
public boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_25402(double arg0, double arg1, int arg2)
m_fpfqbhfx(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
m_6375_(double p_94126_, double arg1, int arg2)
public void
e(boolean arg0)
setFocus(boolean arg0)
method_1876(boolean arg0)
m_wltqhewk(boolean arg0)
setTextFieldFocused(boolean focused)
setTextFieldFocused(boolean focused)
m_94178_(boolean arg0)
public void
b(eaq arg0, int arg1, int arg2, float arg3)
renderButton(PoseStack arg0, int arg1, int arg2, float arg3)
method_25359(class_4587 arg0, int arg1, int arg2, float arg3)
m_hbtivtow(C_cnszsxvd arg0, int arg1, int arg2, float arg3)
renderButton(MatrixStack arg0, int arg1, int arg2, float arg3)
renderButton(MatrixStack arg0, int arg1, int arg2, float arg3)
m_6303_(C_3181_ p_94161_, int p_94162_, int p_94163_, float arg3)
private void
b(int arg0, int arg1, int arg2, int arg3)
renderHighlight(int arg0, int arg1, int arg2, int arg3)
method_1886(int arg0, int arg1, int arg2, int arg3)
m_gekimhwd(int arg0, int arg1, int arg2, int arg3)
drawSelectionHighlight(int x1, int y1, int x2, int y2)
drawSelectionHighlight(int x1, int y1, int x2, int y2)
m_94135_(int p_94137_, int p_94138_, int p_94139_, int arg3)
public void
j(int arg0)
setMaxLength(int arg0)
method_1880(int arg0)
m_wxaushxx(int arg0)
setMaxLength(int maxLength)
setMaxLength(int maxLength)
m_94199_(int arg0)
private int
s()
getMaxLength()
method_1861()
m_lisudksz()
getMaxLength()
getMaxLength()
m_94216_()
public int
p()
getCursorPosition()
method_1881()
m_hpmwgamq()
getCursor()
getCursor()
m_94207_()
private boolean
u()
isBordered()
method_1851()
m_qgwbazsb()
drawsBackground()
drawsBackground()
m_94219_()
public void
f(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
m_yywjykzi(boolean arg0)
setDrawsBackground(boolean drawsBackground)
setDrawsBackground(boolean drawsBackground)
m_94182_(boolean arg0)
public void
k(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
m_afjjpukx(int arg0)
setEditableColor(int editableColor)
setEditableColor(int color)
m_94202_(int arg0)
public void
l(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
m_tjkqxkxe(int arg0)
setUneditableColor(int uneditableColor)
setUneditableColor(int color)
m_94205_(int arg0)
public boolean
b(boolean arg0)
changeFocus(boolean arg0)
method_25407(boolean arg0)
m_cudkwwhh(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
m_5755_(boolean arg0)
public boolean
a_(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
m_nxrnpxyk(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
m_5953_(double p_94158_, double arg1)
protected void
c(boolean arg0)
onFocusedChanged(boolean arg0)
method_25363(boolean arg0)
m_awnoxrls(boolean arg0)
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
m_7207_(boolean arg0)
private boolean
v()
isEditable()
method_20316()
m_wtycrnfd()
isEditable()
isEditable()
m_94222_()
public void
g(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
m_jgyuuykz(boolean arg0)
setEditable(boolean editable)
setEditable(boolean editable)
m_94186_(boolean arg0)
public int
q()
getInnerWidth()
method_1859()
m_rgidzzjf()
getInnerWidth()
getInnerWidth()
m_94210_()
public void
m(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
m_kzuozrwz(int arg0)
setSelectionEnd(int index)
setSelectionEnd(int index)
m_94208_(int arg0)
public void
h(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
m_zctgvchi(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
setFocusUnlocked(boolean focusUnlocked)
m_94190_(boolean arg0)
public boolean
r()
isVisible()
method_1885()
m_nejvlvdj()
isVisible()
isVisible()
m_94213_()
public void
i(boolean arg0)
setVisible(boolean arg0)
method_1862(boolean arg0)
m_emxvspka(boolean arg0)
setVisible(boolean visible)
setVisible(boolean visible)
m_94194_(boolean arg0)
public void
c(String arg0)
setSuggestion(String arg0)
method_1887(String arg0)
m_mreopyko(String arg0)
setSuggestion(String suggestion)
setSuggestion(String suggestion)
m_94167_(String arg0)
public int
n(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
m_blncbkhz(int arg0)
getCharacterX(int index)
getCharacterX(int index)
m_94211_(int arg0)
public void
o(int arg0)
setX(int arg0)
method_16872(int arg0)
m_fbktwttl(int arg0)
setX(int x)
setX(int x)
m_94214_(int arg0)
public void
a(ejv arg0)
updateNarration(NarrationElementOutput arg0)
method_37020(class_6382 arg0)
m_ubiaqpjr(C_pofrkllk arg0)
appendNarrations(NarrationMessageBuilder arg0)
appendNarrations(NarrationMessageBuilder arg0)
m_142291_(C_141608_ arg0)