net.minecraft.client.gui.components

public class EditBox

extends AbstractWidget

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

fpd
net.minecraft.client.gui.components.EditBox
net.minecraft.class_342
net.minecraft.client.gui.widget.TextFieldWidget

Field summary

Modifier and TypeField
private static final WidgetSprites
d
SPRITES
field_45914
TEXTURES
public static final int
a
BACKWARDS
field_32194
field_32194
public static final int
b
FORWARDS
field_32195
field_32195
private static final int
e
CURSOR_INSERT_WIDTH
field_32197
field_32197
private static final int
f
CURSOR_INSERT_COLOR
field_32198
VERTICAL_CURSOR_COLOR
private static final String
m
CURSOR_APPEND_CHARACTER
field_32199
HORIZONTAL_CURSOR
public static final int
c
DEFAULT_TEXT_COLOR
field_32196
DEFAULT_EDITABLE_COLOR
private static final int
n
CURSOR_BLINK_INTERVAL_MS
field_45354
field_45354
private final Font
o
font
field_2105
textRenderer
private String
p
value
field_2092
text
private int
q
maxLength
field_2108
maxLength
private boolean
r
bordered
field_2095
drawsBackground
private boolean
s
canLoseFocus
field_2096
focusUnlocked
private boolean
u
isEditable
field_2094
editable
private int
v
displayPos
field_2103
firstCharacterIndex
private int
w
cursorPos
field_2102
selectionStart
private int
x
highlightPos
field_2101
selectionEnd
private int
y
textColor
field_2100
editableColor
private int
z
textColorUneditable
field_2098
uneditableColor
private String
A
suggestion
field_2106
suggestion
private Consumer<String>
B
responder
field_2088
changedListener
private Predicate<String>
C
filter
field_2104
textPredicate
private BiFunction<String, Integer, FormattedCharSequence>
D
formatter
field_2099
renderTextProvider
private Component
E
hint
field_41100
placeholder
private long
F
focusedTime
field_45352
lastSwitchFocusTime

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)
public void
a(BiFunction<String, Integer, ayl> arg0)
setFormatter(BiFunction<String, Integer, FormattedCharSequence> arg0)
method_1854(BiFunction<String, Integer, class_5481> arg0)
setRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider)
protected MutableComponent
d()
createNarrationMessage()
method_25360()
getNarrationMessage()
public void
a(String arg0)
setValue(String arg0)
method_1852(String arg0)
setText(String text)
public String
a()
getValue()
method_1882()
getText()
public String
b()
getHighlighted()
method_1866()
getSelectedText()
public void
a(Predicate<String> arg0)
setFilter(Predicate<String> arg0)
method_1890(Predicate<String> arg0)
setTextPredicate(Predicate<String> textPredicate)
public void
b(String arg0)
insertText(String arg0)
method_1867(String arg0)
write(String text)
private void
d(String arg0)
onValueChange(String arg0)
method_1874(String arg0)
onChanged(String newText)
private void
q(int arg0)
deleteText(int arg0)
method_16873(int arg0)
erase(int offset)
public void
a(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
eraseWords(int wordOffset)
public void
b(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
eraseCharacters(int characterOffset)
public void
c(int arg0)
deleteCharsToPos(int arg0)
method_55506(int arg0)
eraseCharactersTo(int position)
public int
d(int arg0)
getWordPosition(int arg0)
method_1853(int arg0)
getWordSkipPosition(int wordOffset)
private int
a(int arg0, int arg1)
getWordPosition(int arg0, int arg1)
method_1869(int arg0, int arg1)
getWordSkipPosition(int wordOffset, int cursorPosition)
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)
public void
a(int arg0, boolean arg1)
moveCursor(int arg0, boolean arg1)
method_1855(int arg0, boolean arg1)
moveCursor(int offset, boolean shiftKeyPressed)
private int
r(int arg0)
getCursorPos(int arg0)
method_27537(int arg0)
getCursorPosWithOffset(int offset)
public void
b(int arg0, boolean arg1)
moveCursorTo(int arg0, boolean arg1)
method_1883(int arg0, boolean arg1)
setCursor(int cursor, boolean shiftKeyPressed)
public void
e(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
setSelectionStart(int cursor)
public void
b(boolean arg0)
moveCursorToStart(boolean arg0)
method_1870(boolean arg0)
setCursorToStart(boolean shiftKeyPressed)
public void
c(boolean arg0)
moveCursorToEnd(boolean arg0)
method_1872(boolean arg0)
setCursorToEnd(boolean shiftKeyPressed)
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)
public boolean
c()
canConsumeInput()
method_20315()
isActive()
public boolean
a(char arg0, int arg1)
charTyped(char arg0, int arg1)
method_25400(char arg0, int arg1)
charTyped(char arg0, 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)
public void
a(hjw arg0)
playDownSound(SoundManager arg0)
method_25354(class_1144 arg0)
playDownSound(SoundManager arg0)
public void
b(fof 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)
private void
a(fof 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)
public void
f(int arg0)
setMaxLength(int arg0)
method_1880(int arg0)
setMaxLength(int maxLength)
private int
k()
getMaxLength()
method_1861()
getMaxLength()
public int
e()
getCursorPosition()
method_1881()
getCursor()
public boolean
g()
isBordered()
method_1851()
drawsBackground()
public void
d(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
setDrawsBackground(boolean drawsBackground)
public void
m(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
setEditableColor(int editableColor)
public void
n(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
setUneditableColor(int uneditableColor)
public void
a(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
setFocused(boolean arg0)
private boolean
l()
isEditable()
method_20316()
isEditable()
public void
e(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
setEditable(boolean editable)
public int
h()
getInnerWidth()
method_1859()
getInnerWidth()
public void
o(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
setSelectionEnd(int index)
private void
s(int arg0)
scrollTo(int arg0)
method_52719(int arg0)
updateFirstCharacterIndex(int cursor)
public void
f(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
public boolean
i()
isVisible()
method_1885()
isVisible()
public void
g(boolean arg0)
setVisible(boolean arg0)
method_1862(boolean arg0)
setVisible(boolean visible)
public void
c(String arg0)
setSuggestion(String arg0)
method_1887(String arg0)
setSuggestion(String suggestion)
public int
p(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
getCharacterX(int index)
public void
a(fsr arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
public void
c(wp arg0)
setHint(Component arg0)
method_47404(class_2561 arg0)
setPlaceholder(Text placeholder)