net.minecraft.client.gui.components

public class EditBox

extends AbstractWidget implements Renderable

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

fiv
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
private static final WidgetSprites
d
SPRITES
field_45914
f_obiubcfv
TEXTURES
TEXT_FIELD_TEXTURES
f_291511_
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
e
CURSOR_INSERT_WIDTH
field_32197
f_gizvhnzb
field_32197
INSERT_CURSOR_WIDTH
f_169002_
private static final int
f
CURSOR_INSERT_COLOR
field_32198
f_ehdqdocj
VERTICAL_CURSOR_COLOR
INSERT_CURSOR_COLOR
f_169003_
private static final String
m
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
n
CURSOR_BLINK_INTERVAL_MS
field_45354
f_gsnwbfnr
field_45354
CURSOR_BLINK_MS
f_290418_
private final Font
o
font
field_2105
f_txtjhjhm
textRenderer
textRenderer
f_94092_
private String
p
value
field_2092
f_rpfmfdmz
text
text
f_94093_
private int
q
maxLength
field_2108
f_phzgdoou
maxLength
maxLength
f_94094_
private boolean
r
bordered
field_2095
f_gcohdxnw
drawsBackground
drawsBackground
f_94096_
private boolean
s
canLoseFocus
field_2096
f_imtjinqy
focusUnlocked
focusUnlocked
f_94097_
private boolean
u
isEditable
field_2094
f_zsmogpnp
editable
editable
f_94098_
private int
v
displayPos
field_2103
f_qftlxopl
firstCharacterIndex
firstCharacterIndex
f_94100_
private int
w
cursorPos
field_2102
f_yfmhkwpd
selectionStart
selectionStart
f_94101_
private int
x
highlightPos
field_2101
f_aaxlfqis
selectionEnd
selectionEnd
f_94102_
private int
y
textColor
field_2100
f_umkngaml
editableColor
editableColor
f_94103_
private int
z
textColorUneditable
field_2098
f_gyakfjgb
uneditableColor
uneditableColor
f_94104_
private String
A
suggestion
field_2106
f_nntrwhcq
suggestion
suggestion
f_94088_
private Consumer<String>
B
responder
field_2088
f_avkvsjop
changedListener
changedListener
f_94089_
private Predicate<String>
C
filter
field_2104
f_lvwcxqgr
textPredicate
textPredicate
f_94090_
private BiFunction<String, Integer, FormattedCharSequence>
D
formatter
field_2099
f_sgjqcrpx
renderTextProvider
renderTextProvider
f_94091_
private Component
E
hint
field_41100
f_flvepgtg
placeholder
hint
f_256828_
private long
F
focusedTime
field_45352
f_ddgsctui
lastSwitchFocusTime
lastFocusTime
f_291233_

Constructor summary

ModifierConstructor
public (Font textRenderer, int width, int height, Component text)
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
b(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, aya> 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)
protected MutableComponent
aQ_()
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
a()
getValue()
method_1882()
m_irwzzxjx()
getText()
getText()
m_94155_()
public String
b()
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
q(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
a(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
b(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
m_ujpapjrq(int arg0)
eraseCharacters(int characterOffset)
eraseCharacters(int characterOffset)
m_94180_(int arg0)
public void
c(int arg0)
deleteCharsToPos(int arg0)
method_55506(int arg0)
m_ecqmubpw(int arg0)
eraseCharactersTo(int position)
eraseAtCursorPosition(int cursorPosition)
m_306194_(int arg0)
public int
d(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
a(int arg0, boolean arg1)
moveCursor(int arg0, boolean arg1)
method_1855(int arg0, boolean arg1)
m_tbulvwaj(int arg0, boolean arg1)
moveCursor(int offset, boolean shiftKeyPressed)
moveCursor(int offset, boolean isSelection)
m_94188_(int p_297286_, boolean arg1)
private int
r(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
b(int arg0, boolean arg1)
moveCursorTo(int arg0, boolean arg1)
method_1883(int arg0, boolean arg1)
m_dsrbkblb(int arg0, boolean arg1)
setCursor(int cursor, boolean shiftKeyPressed)
setCursor(int cursor, boolean isSelection)
m_94192_(int p_300521_, boolean arg1)
public void
e(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
b(boolean arg0)
moveCursorToStart(boolean arg0)
method_1870(boolean arg0)
m_uamercht(boolean arg0)
setCursorToStart(boolean shiftKeyPressed)
setCursorToStart(boolean isSelection)
m_94198_(boolean arg0)
public void
c(boolean arg0)
moveCursorToEnd(boolean arg0)
method_1872(boolean arg0)
m_zxclplhg(boolean arg0)
setCursorToEnd(boolean shiftKeyPressed)
setCursorToEnd(boolean isSelection)
m_94201_(boolean arg0)
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
c()
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 void
a(double arg0, double arg1)
onClick(double arg0, double arg1)
method_25348(double arg0, double arg1)
m_hxhlmyqd(double arg0, double arg1)
onClick(double arg0, double arg1)
onClick(double arg0, double arg1)
m_5716_(double p_279437_, double arg1)
public void
a(gvf arg0)
playDownSound(SoundManager arg0)
method_25354(class_1144 arg0)
m_xaqgdxna(C_hfmtwavd arg0)
playDownSound(SoundManager arg0)
playDownSound(SoundManager arg0)
m_7435_(C_4603_ arg0)
public void
b(fhz arg0, int arg1, int arg2, float arg3)
renderWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
m_mxhoikgj(C_sedilmty arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
drawWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
m_87963_(C_279497_ p_281594_, int p_282100_, int p_283101_, float arg3)
private void
a(fhz arg0, int arg1, int arg2, int arg3, int arg4)
renderHighlight(GuiGraphics arg0, int arg1, int arg2, int arg3, int arg4)
method_1886(class_332 arg0, int arg1, int arg2, int arg3, int arg4)
m_gekimhwd(C_sedilmty arg0, int arg1, int arg2, int arg3, int arg4)
drawSelectionHighlight(DrawContext context, int x1, int y1, int x2, int y2)
drawSelectionHighlight(GuiGraphics graphics, int x1, int y1, int x2, int y2)
m_264315_(C_279497_ p_265338_, int p_265693_, int p_265618_, int p_265584_, int arg4)
public void
f(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
j()
getMaxLength()
method_1861()
m_lisudksz()
getMaxLength()
getMaxLength()
m_94216_()
public int
e()
getCursorPosition()
method_1881()
m_hpmwgamq()
getCursor()
getCursor()
m_94207_()
public boolean
f()
isBordered()
method_1851()
m_qgwbazsb()
drawsBackground()
drawsBackground()
m_94219_()
public void
d(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
g(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
h(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
m_tjkqxkxe(int arg0)
setUneditableColor(int uneditableColor)
setUneditableColor(int color)
m_94205_(int arg0)
public void
a(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
m_sxncwtsd(boolean arg0)
setFocused(boolean arg0)
setFocused(boolean arg0)
m_93692_(boolean arg0)
private boolean
k()
isEditable()
method_20316()
m_wtycrnfd()
isEditable()
isEditable()
m_94222_()
public void
e(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
h()
getInnerWidth()
method_1859()
m_rgidzzjf()
getInnerWidth()
getInnerWidth()
m_94210_()
public void
i(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
m_kzuozrwz(int arg0)
setSelectionEnd(int index)
setSelectionEnd(int index)
m_94208_(int arg0)
private void
s(int arg0)
scrollTo(int arg0)
method_52719(int arg0)
m_iplsenyc(int arg0)
updateFirstCharacterIndex(int cursor)
updateFirstCharacter(int index)
m_293607_(int arg0)
public void
f(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
i()
isVisible()
method_1885()
m_nejvlvdj()
isVisible()
isVisible()
m_94213_()
public void
g(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
p(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
a(fmi arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
m_acsoyrbk(C_pofrkllk arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
updateNarration(NarrationMessageBuilder arg0)
m_168797_(C_141608_ arg0)
public void
c(wz arg0)
setHint(Component arg0)
method_47404(class_2561 arg0)
m_qksvjsnb(C_rdaqiwdt arg0)
setPlaceholder(Text placeholder)
setHint(Text hint)
m_257771_(C_4996_ arg0)