net.minecraft.client.gui.components

public class EditBox

extends AbstractWidget implements Widget, GuiEventListener

All mapped superinterfaces:

Widget, GuiEventListener

ddc
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
f
canLoseFocus
field_2096
focusUnlocked
field_146212_n
private boolean
g
isEditable
field_2094
editable
field_146226_p
private boolean
h
shiftPressed
field_17037
selecting
field_212956_h
private int
i
displayPos
field_2103
firstCharacterIndex
field_146225_q
private int
j
cursorPos
field_2102
selectionStart
field_146224_r
private int
k
highlightPos
field_2101
selectionEnd
field_146223_s
private int
l
textColor
field_2100
editableColor
field_146222_t
private int
m
textColorUneditable
field_2098
uneditableColor
field_146221_u
private String
n
suggestion
field_2106
suggestion
field_195614_x
private Consumer<String>
o
responder
field_2088
changedListener
field_175210_x
private Predicate<String>
p
filter
field_2104
textPredicate
field_175209_y
private BiFunction<String, Integer, String>
q
formatter
field_2099
renderTextProvider
field_195613_A

Constructor summary

ModifierConstructor
public (Font textRenderer, int x, int y, int width, int height, String message)
public (Font textRenderer, int x, int y, int width, int height, EditBox copyFrom, String message)

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 String
getNarrationMessage()
getNarrationMessage()
getNarrationMessage()
getNarrationMessage()
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
c()
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 text)
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
m(int arg0)
deleteText(int arg0)
method_16873(int arg0)
erase(int offset)
func_212950_m(int arg0)
public void
a(int arg0)
deleteWords(int arg0)
method_1877(int arg0)
eraseWords(int wordOffset)
func_146177_a(int arg0)
public void
b(int arg0)
deleteChars(int arg0)
method_1878(int arg0)
eraseCharacters(int characterOffset)
func_146175_b(int arg0)
public int
c(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
d(int arg0)
moveCursor(int arg0)
method_1855(int arg0)
moveCursor(int offset)
func_146182_d(int arg0)
public void
e(int arg0)
moveCursorTo(int arg0)
method_1883(int arg0)
setCursor(int cursor)
func_146190_e(int arg0)
public void
f(int arg0)
setCursorPosition(int arg0)
method_1875(int arg0)
setSelectionStart(int cursor)
func_212422_f(int arg0)
public void
d()
moveCursorToStart()
method_1870()
setCursorToStart()
func_146196_d()
public void
e()
moveCursorToEnd()
method_1872()
setCursorToEnd()
func_146202_e()
public boolean
keyPressed(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
keyPressed(int arg0, int arg1, int arg2)
public boolean
f()
canConsumeInput()
method_20315()
isActive()
func_212955_f()
public boolean
charTyped(char arg0, int arg1)
charTyped(char arg0, int arg1)
charTyped(char arg0, int arg1)
charTyped(char arg0, int arg1)
charTyped(char arg0, int arg1)
public boolean
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
public void
a(boolean arg0)
setFocus(boolean arg0)
method_1876(boolean arg0)
setSelected(boolean selected)
func_146195_b(boolean arg0)
public void
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
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
g(int arg0)
setMaxLength(int arg0)
method_1880(int arg0)
setMaxLength(int maximumLength)
func_146203_f(int arg0)
private int
j()
getMaxLength()
method_1861()
getMaxLength()
func_146208_g()
public int
g()
getCursorPosition()
method_1881()
getCursor()
func_146198_h()
private boolean
k()
isBordered()
method_1851()
hasBorder()
func_146181_i()
public void
b(boolean arg0)
setBordered(boolean arg0)
method_1858(boolean arg0)
setHasBorder(boolean hasBorder)
func_146185_a(boolean arg0)
public void
h(int arg0)
setTextColor(int arg0)
method_1868(int arg0)
setEditableColor(int color)
func_146193_g(int arg0)
public void
i(int arg0)
setTextColorUneditable(int arg0)
method_1860(int arg0)
setUneditableColor(int color)
func_146204_h(int arg0)
public boolean
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
public boolean
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
protected void
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
private boolean
l()
isEditable()
method_20316()
isEditable()
func_212953_l()
public void
c(boolean arg0)
setEditable(boolean arg0)
method_1888(boolean arg0)
setEditable(boolean editable)
func_146184_c(boolean arg0)
public int
h()
getInnerWidth()
method_1859()
getInnerWidth()
func_146200_o()
public void
j(int arg0)
setHighlightPos(int arg0)
method_1884(int arg0)
setSelectionEnd(int arg0)
func_146199_i(int arg0)
public void
d(boolean arg0)
setCanLoseFocus(boolean arg0)
method_1856(boolean arg0)
setFocusUnlocked(boolean focusUnlocked)
func_146205_d(boolean arg0)
public boolean
i()
isVisible()
method_1885()
isVisible()
func_146176_q()
public void
e(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
k(int arg0)
getScreenX(int arg0)
method_1889(int arg0)
getCharacterX(int index)
func_195611_j(int arg0)
public void
l(int arg0)
setX(int arg0)
method_16872(int arg0)
setX(int x)
func_212952_l(int arg0)