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

Field summary

Modifier and TypeField
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
d
CURSOR_INSERT_WIDTH
field_32197
field_32197
f_169002_
private static final int
e
CURSOR_INSERT_COLOR
field_32198
VERTICAL_CURSOR_COLOR
f_169003_
private static final String
f
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
s
BORDER_COLOR_FOCUSED
field_32201
field_32201
f_169005_
private static final int
t
BORDER_COLOR
field_32202
BORDER_COLOR
f_169006_
private static final int
u
BACKGROUND_COLOR
field_32203
BACKGROUND_COLOR
f_169007_
private final Font
v
font
field_2105
textRenderer
f_94092_
private String
w
value
field_2092
text
f_94093_
private int
x
maxLength
field_2108
maxLength
f_94094_
private int
y
frame
field_2107
focusedTicks
f_94095_
private boolean
z
bordered
field_2095
drawsBackground
f_94096_
private boolean
A
canLoseFocus
field_2096
focusUnlocked
f_94097_
private boolean
B
isEditable
field_2094
editable
f_94098_
private boolean
C
shiftPressed
field_17037
selecting
f_94099_
private int
D
displayPos
field_2103
firstCharacterIndex
f_94100_
private int
E
cursorPos
field_2102
selectionStart
f_94101_
private int
F
highlightPos
field_2101
selectionEnd
f_94102_
private int
G
textColor
field_2100
editableColor
f_94103_
private int
H
textColorUneditable
field_2098
uneditableColor
f_94104_
private String
I
suggestion
field_2106
suggestion
f_94088_
private Consumer<String>
J
responder
field_2088
changedListener
f_94089_
private Predicate<String>
K
filter
field_2104
textPredicate
f_94090_
private BiFunction<String, Integer, FormattedCharSequence>
L
formatter
field_2099
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)
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)
setRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider)
m_94149_(BiFunction<String, Integer, C_178_> arg0)
public void
a()
tick()
method_1865()
tick()
m_94120_()
protected MutableComponent
ai_()
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
b()
getValue()
method_1882()
getText()
m_94155_()
public String
c()
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
p(int arg0)
deleteText(int arg0)
method_16873(int arg0)
erase(int offset)
m_94217_(int arg0)
public void
c(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
eraseWords(int wordOffset)
m_94176_(int arg0)
public void
e(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
eraseCharacters(int characterOffset)
m_94180_(int arg0)
public int
f(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
g(int arg0)
moveCursor(int arg0)
method_1855(int arg0)
moveCursor(int offset)
m_94188_(int arg0)
private int
q(int arg0)
getCursorPos(int arg0)
method_27537(int arg0)
getCursorPosWithOffset(int offset)
m_94220_(int arg0)
public void
h(int arg0)
moveCursorTo(int arg0)
method_1883(int arg0)
setCursor(int cursor)
m_94192_(int arg0)
public void
i(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
setSelectionStart(int cursor)
m_94196_(int arg0)
public void
e()
moveCursorToStart()
method_1870()
setCursorToStart()
m_94198_()
public void
f()
moveCursorToEnd()
method_1872()
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)
keyPressed(int arg0, int arg1, int arg2)
m_7933_(int p_94133_, int p_94134_, int arg2)
public boolean
g()
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 boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_25402(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)
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)
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)
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)
setMaxLength(int maxLength)
m_94199_(int arg0)
private int
s()
getMaxLength()
method_1861()
getMaxLength()
m_94216_()
public int
p()
getCursorPosition()
method_1881()
getCursor()
m_94207_()
private boolean
u()
isBordered()
method_1851()
drawsBackground()
m_94219_()
public void
f(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
setDrawsBackground(boolean drawsBackground)
m_94182_(boolean arg0)
public void
k(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
setEditableColor(int editableColor)
m_94202_(int arg0)
public void
l(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
setUneditableColor(int uneditableColor)
m_94205_(int arg0)
public boolean
b(boolean arg0)
changeFocus(boolean arg0)
method_25407(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)
isMouseOver(double arg0, double arg1)
m_5953_(double p_94158_, double arg1)
protected void
c(boolean arg0)
onFocusedChanged(boolean arg0)
method_25363(boolean arg0)
onFocusedChanged(boolean arg0)
m_7207_(boolean arg0)
private boolean
v()
isEditable()
method_20316()
isEditable()
m_94222_()
public void
g(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
setEditable(boolean editable)
m_94186_(boolean arg0)
public int
q()
getInnerWidth()
method_1859()
getInnerWidth()
m_94210_()
public void
m(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
setSelectionEnd(int index)
m_94208_(int arg0)
public void
h(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
m_94190_(boolean arg0)
public boolean
r()
isVisible()
method_1885()
isVisible()
m_94213_()
public void
i(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
n(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
getCharacterX(int index)
m_94211_(int arg0)
public void
o(int arg0)
setX(int arg0)
method_16872(int arg0)
setX(int x)
m_94214_(int arg0)
public void
a(ejv arg0)
updateNarration(NarrationElementOutput arg0)
method_37020(class_6382 arg0)
appendNarrations(NarrationMessageBuilder arg0)
m_142291_(C_141608_ arg0)