net.minecraft.client.gui.components

public class EditBox

extends AbstractWidget implements Widget, GuiEventListener

All mapped superinterfaces:

Widget, GuiEventListener

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

Field summary

Modifier and TypeField
private final Font
a
font
field_2105
textRenderer
field_146211_a
private String
b
value
field_2092
text
field_146216_j
private int
c
maxLength
field_2108
maxLength
field_146217_k
private int
d
frame
field_2107
focusedTicks
field_146214_l
private boolean
e
bordered
field_2095
focused
field_146215_m
private boolean
s
canLoseFocus
field_2096
focusUnlocked
field_146212_n
private boolean
t
isEditable
field_2094
editable
field_146226_p
private boolean
u
shiftPressed
field_17037
selecting
field_212956_h
private int
v
displayPos
field_2103
firstCharacterIndex
field_146225_q
private int
w
cursorPos
field_2102
selectionStart
field_146224_r
private int
x
highlightPos
field_2101
selectionEnd
field_146223_s
private int
y
textColor
field_2100
editableColor
field_146222_t
private int
z
textColorUneditable
field_2098
uneditableColor
field_146221_u
private String
A
suggestion
field_2106
suggestion
field_195614_x
private Consumer<String>
B
responder
field_2088
changedListener
field_175210_x
private Predicate<String>
C
filter
field_2104
textPredicate
field_175209_y
private BiFunction<String, Integer, String>
D
formatter
field_2099
renderTextProvider
field_195613_A

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(Consumer<String> arg0)
setResponder(Consumer<String> arg0)
method_1863(Consumer<String> arg0)
setChangedListener(Consumer<String> changedListener)
func_212954_a(Consumer<String> arg0)
public void
a(BiFunction<String, Integer, String> arg0)
setFormatter(BiFunction<String, Integer, String> arg0)
method_1854(BiFunction<String, Integer, String> arg0)
setRenderTextProvider(BiFunction<String, Integer, String> renderTextProvider)
func_195607_a(BiFunction<String, Integer, String> arg0)
public void
a()
tick()
method_1865()
tick()
func_146178_a()
protected MutableComponent
c()
createNarrationMessage()
method_25360()
getNarrationMessage()
func_230442_c_()
public void
a(String arg0)
setValue(String arg0)
method_1852(String arg0)
setText(String text)
func_146180_a(String arg0)
public String
b()
getValue()
method_1882()
getText()
func_146179_b()
public String
d()
getHighlighted()
method_1866()
getSelectedText()
func_146207_c()
public void
a(Predicate<String> arg0)
setFilter(Predicate<String> arg0)
method_1890(Predicate<String> arg0)
setTextPredicate(Predicate<String> textPredicate)
func_200675_a(Predicate<String> arg0)
public void
b(String arg0)
insertText(String arg0)
method_1867(String arg0)
write(String arg0)
func_146191_b(String arg0)
private void
d(String arg0)
onValueChange(String arg0)
method_1874(String arg0)
onChanged(String newText)
func_212951_d(String arg0)
private void
q(int arg0)
deleteText(int arg0)
method_16873(int arg0)
erase(int offset)
func_212950_m(int arg0)
public void
d(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
eraseWords(int wordOffset)
func_146177_a(int arg0)
public void
f(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
eraseCharacters(int characterOffset)
func_146175_b(int arg0)
public int
g(int arg0)
getWordPosition(int arg0)
method_1853(int arg0)
getWordSkipPosition(int wordOffset)
func_146187_c(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)
func_146183_a(int arg0, 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)
func_146197_a(int arg0, int arg1, boolean arg2)
public void
h(int arg0)
moveCursor(int arg0)
method_1855(int arg0)
moveCursor(int offset)
func_146182_d(int arg0)
private int
r(int arg0)
getCursorPos(int arg0)
method_27537(int arg0)
method_27537(int arg0)
func_238516_r_(int arg0)
public void
i(int arg0)
moveCursorTo(int arg0)
method_1883(int arg0)
setCursor(int cursor)
func_146190_e(int arg0)
public void
j(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
setSelectionStart(int cursor)
func_212422_f(int arg0)
public void
k()
moveCursorToStart()
method_1870()
setCursorToStart()
func_146196_d()
public void
l()
moveCursorToEnd()
method_1872()
setCursorToEnd()
func_146202_e()
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)
func_231046_a_(int arg0, int arg1, int arg2)
public boolean
m()
canConsumeInput()
method_20315()
isActive()
func_212955_f()
public boolean
a(char arg0, int arg1)
charTyped(char arg0, int arg1)
method_25400(char arg0, int arg1)
charTyped(char arg0, int arg1)
func_231042_a_(char arg0, 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)
func_231044_a_(double arg0, double arg1, int arg2)
public void
e(boolean arg0)
setFocus(boolean arg0)
method_1876(boolean arg0)
setSelected(boolean selected)
func_146195_b(boolean arg0)
public void
b(dhl 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)
func_230431_b_(MatrixStack arg0, int arg1, int arg2, float arg3)
private void
a(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)
func_146188_c(int arg0, int arg1, int arg2, int arg3)
public void
k(int arg0)
setMaxLength(int arg0)
method_1880(int arg0)
setMaxLength(int maxLength)
func_146203_f(int arg0)
private int
r()
getMaxLength()
method_1861()
getMaxLength()
func_146208_g()
public int
n()
getCursorPosition()
method_1881()
getCursor()
func_146198_h()
private boolean
s()
isBordered()
method_1851()
hasBorder()
func_146181_i()
public void
f(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
setHasBorder(boolean hasBorder)
func_146185_a(boolean arg0)
public void
l(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
setEditableColor(int color)
func_146193_g(int arg0)
public void
m(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
setUneditableColor(int color)
func_146204_h(int arg0)
public boolean
c_(boolean arg0)
changeFocus(boolean arg0)
method_25407(boolean arg0)
changeFocus(boolean arg0)
func_231049_c__(boolean arg0)
public boolean
b(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
func_231047_b_(double arg0, double arg1)
protected void
c(boolean arg0)
onFocusedChanged(boolean arg0)
method_25363(boolean arg0)
onFocusedChanged(boolean arg0)
func_230995_c_(boolean arg0)
private boolean
t()
isEditable()
method_20316()
isEditable()
func_212953_l()
public void
g(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
setEditable(boolean editable)
func_146184_c(boolean arg0)
public int
p()
getInnerWidth()
method_1859()
getInnerWidth()
func_146200_o()
public void
n(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
setSelectionEnd(int arg0)
func_146199_i(int arg0)
public void
h(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
func_146205_d(boolean arg0)
public boolean
q()
isVisible()
method_1885()
isVisible()
func_146176_q()
public void
i(boolean arg0)
setVisible(boolean arg0)
method_1862(boolean arg0)
setVisible(boolean visible)
func_146189_e(boolean arg0)
public void
c(String arg0)
setSuggestion(String arg0)
method_1887(String arg0)
setSuggestion(String suggestion)
func_195612_c(String arg0)
public int
o(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
getCharacterX(int index)
func_195611_j(int arg0)
public void
p(int arg0)
setX(int arg0)
method_16872(int arg0)
setX(int x)
func_212952_l(int arg0)