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.client.gui.widget.TextFieldWidget
net.minecraft.src.C_3464_

Field summary

Modifier and TypeField
private static final WidgetSprites
d
SPRITES
field_45914
TEXTURES
f_291511_
public static final int
a
BACKWARDS
field_32194
field_32194
f_168999_
public static final int
b
FORWARDS
field_32195
field_32195
f_169000_
private static final int
e
CURSOR_INSERT_WIDTH
field_32197
field_32197
f_169002_
private static final int
f
CURSOR_INSERT_COLOR
field_32198
VERTICAL_CURSOR_COLOR
f_169003_
private static final String
m
CURSOR_APPEND_CHARACTER
field_32199
HORIZONTAL_CURSOR
f_169004_
public static final int
c
DEFAULT_TEXT_COLOR
field_32196
DEFAULT_EDITABLE_COLOR
f_169001_
private static final int
n
CURSOR_BLINK_INTERVAL_MS
field_45354
field_45354
f_290418_
private final Font
o
font
field_2105
textRenderer
f_94092_
private String
p
value
field_2092
text
f_94093_
private int
q
maxLength
field_2108
maxLength
f_94094_
private boolean
r
bordered
field_2095
drawsBackground
f_94096_
private boolean
s
canLoseFocus
field_2096
focusUnlocked
f_94097_
private boolean
u
isEditable
field_2094
editable
f_94098_
private int
v
displayPos
field_2103
firstCharacterIndex
f_94100_
private int
w
cursorPos
field_2102
selectionStart
f_94101_
private int
x
highlightPos
field_2101
selectionEnd
f_94102_
private int
y
textColor
field_2100
editableColor
f_94103_
private int
z
textColorUneditable
field_2098
uneditableColor
f_94104_
private String
A
suggestion
field_2106
suggestion
f_94088_
private Consumer<String>
B
responder
field_2088
changedListener
f_94089_
private Predicate<String>
C
filter
field_2104
textPredicate
f_94090_
private BiFunction<String, Integer, FormattedCharSequence>
D
formatter
field_2099
renderTextProvider
f_94091_
private Component
E
hint
field_41100
placeholder
f_256828_
private long
F
focusedTime
field_45352
lastSwitchFocusTime
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)
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)
setRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider)
m_94149_(BiFunction<String, Integer, C_178_> arg0)
protected MutableComponent
aQ_()
createNarrationMessage()
method_25360()
getNarrationMessage()
m_5646_()
public void
a(String arg0)
setValue(String arg0)
method_1852(String arg0)
setText(String text)
m_94144_(String arg0)
public String
a()
getValue()
method_1882()
getText()
m_94155_()
public String
b()
getHighlighted()
method_1866()
getSelectedText()
m_94173_()
public void
a(Predicate<String> arg0)
setFilter(Predicate<String> arg0)
method_1890(Predicate<String> arg0)
setTextPredicate(Predicate<String> textPredicate)
m_94153_(Predicate<String> arg0)
public void
b(String arg0)
insertText(String arg0)
method_1867(String arg0)
write(String text)
m_94164_(String arg0)
private void
d(String arg0)
onValueChange(String arg0)
method_1874(String arg0)
onChanged(String newText)
m_94174_(String arg0)
private void
q(int arg0)
deleteText(int arg0)
method_16873(int arg0)
erase(int offset)
m_94217_(int arg0)
public void
a(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
eraseWords(int wordOffset)
m_94176_(int arg0)
public void
b(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
eraseCharacters(int characterOffset)
m_94180_(int arg0)
public void
c(int arg0)
deleteCharsToPos(int arg0)
method_55506(int arg0)
eraseCharactersTo(int position)
m_306194_(int arg0)
public int
d(int arg0)
getWordPosition(int arg0)
method_1853(int arg0)
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)
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)
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)
moveCursor(int offset, boolean shiftKeyPressed)
m_94188_(int p_297286_, boolean arg1)
private int
r(int arg0)
getCursorPos(int arg0)
method_27537(int arg0)
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)
setCursor(int cursor, boolean shiftKeyPressed)
m_94192_(int p_300521_, boolean arg1)
public void
e(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
setSelectionStart(int cursor)
m_94196_(int arg0)
public void
b(boolean arg0)
moveCursorToStart(boolean arg0)
method_1870(boolean arg0)
setCursorToStart(boolean shiftKeyPressed)
m_94198_(boolean arg0)
public void
c(boolean arg0)
moveCursorToEnd(boolean arg0)
method_1872(boolean arg0)
setCursorToEnd(boolean shiftKeyPressed)
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)
keyPressed(int arg0, int arg1, int arg2)
m_7933_(int p_94133_, int p_94134_, int arg2)
public boolean
c()
canConsumeInput()
method_20315()
isActive()
m_94204_()
public boolean
a(char arg0, int arg1)
charTyped(char arg0, int arg1)
method_25400(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)
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)
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)
renderWidget(DrawContext 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)
drawSelectionHighlight(DrawContext context, 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)
setMaxLength(int maxLength)
m_94199_(int arg0)
private int
j()
getMaxLength()
method_1861()
getMaxLength()
m_94216_()
public int
e()
getCursorPosition()
method_1881()
getCursor()
m_94207_()
public boolean
f()
isBordered()
method_1851()
drawsBackground()
m_94219_()
public void
d(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
setDrawsBackground(boolean drawsBackground)
m_94182_(boolean arg0)
public void
g(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
setEditableColor(int editableColor)
m_94202_(int arg0)
public void
h(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
setUneditableColor(int uneditableColor)
m_94205_(int arg0)
public void
a(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
setFocused(boolean arg0)
m_93692_(boolean arg0)
private boolean
k()
isEditable()
method_20316()
isEditable()
m_94222_()
public void
e(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
setEditable(boolean editable)
m_94186_(boolean arg0)
public int
h()
getInnerWidth()
method_1859()
getInnerWidth()
m_94210_()
public void
i(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
setSelectionEnd(int index)
m_94208_(int arg0)
private void
s(int arg0)
scrollTo(int arg0)
method_52719(int arg0)
updateFirstCharacterIndex(int cursor)
m_293607_(int arg0)
public void
f(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
m_94190_(boolean arg0)
public boolean
i()
isVisible()
method_1885()
isVisible()
m_94213_()
public void
g(boolean arg0)
setVisible(boolean arg0)
method_1862(boolean arg0)
setVisible(boolean visible)
m_94194_(boolean arg0)
public void
c(String arg0)
setSuggestion(String arg0)
method_1887(String arg0)
setSuggestion(String suggestion)
m_94167_(String arg0)
public int
p(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
getCharacterX(int index)
m_94211_(int arg0)
public void
a(fmi arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
m_168797_(C_141608_ arg0)
public void
c(wz arg0)
setHint(Component arg0)
method_47404(class_2561 arg0)
setPlaceholder(Text placeholder)
m_257771_(C_4996_ arg0)