net.minecraft.client.gui

public class EditBox

net.minecraft.client.gui.components.MultilineTextField
net.minecraft.class_7530
net.minecraft.client.gui.EditBox

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_61063
LOGGER
public static final int
NO_LIMIT
field_39511
UNLIMITED_LENGTH
private static final int
LINE_SEEK_PIXEL_BIAS
field_39512
CURSOR_WIDTH
private final TextRenderer
font
field_39513
textRenderer
private final List<EditBox$Substring>
displayLines
field_39514
lines
private String
value
field_39515
text
private int
cursor
field_39516
cursor
private int
selectCursor
field_39517
selectionEnd
private boolean
selecting
field_39518
selecting
private int
characterLimit
field_39519
maxLength
private int
lineLimit
field_60450
maxLines
private final int
width
field_39520
width
private Consumer<String>
valueListener
field_39521
changeListener
private Runnable
cursorListener
field_39522
cursorChangeListener

Constructor summary

ModifierConstructor
public (TextRenderer textRenderer, int width)

Method summary

Modifier and TypeMethod
public int
characterLimit()
method_44409()
getMaxLength()
public void
setCharacterLimit(int characterLimit)
method_44411(int arg0)
setMaxLength(int maxLength)
public void
setLineLimit(int lineLimit)
method_71517(int arg0)
setMaxLines(int maxLines)
public boolean
hasCharacterLimit()
method_44418()
hasMaxLength()
public boolean
hasLineLimit()
method_71518()
hasMaxLines()
public void
setValueListener(Consumer<String> valueListener)
method_44415(Consumer<String> arg0)
setChangeListener(Consumer<String> changeListener)
public void
setCursorListener(Runnable cursorListener)
method_44413(Runnable arg0)
setCursorChangeListener(Runnable cursorChangeListener)
public void
setValue(String value)
method_72235(String arg0)
setText(String setText)
public void
setValue(String value, boolean allowOverflowLineLimit)
method_44414(String arg0, boolean arg1)
setText(String text, boolean allowOverflow)
public String
value()
method_44421()
getText()
public void
insertText(String input)
method_44420(String arg0)
replaceSelection(String string)
public void
deleteText(int dir)
method_44419(int arg0)
delete(int offset)
public int
cursor()
method_44424()
getCursor()
public void
setSelecting(boolean selecting)
method_44417(boolean arg0)
setSelecting(boolean selecting)
public EditBox$Substring
getSelected()
method_44427()
getSelection()
public int
getLineCount()
method_44430()
getLineCount()
public int
getLineAtCursor()
method_44432()
getCurrentLineIndex()
public EditBox$Substring
getLineView(int lineIndex)
method_44422(int arg0)
getLine(int index)
public void
seekCursor(Whence whence, int cursor)
method_44412(class_7533 arg0, int arg1)
moveCursor(CursorMovement movement, int amount)
public void
seekCursorLine(int lineOffset)
method_44425(int arg0)
moveCursorLine(int offset)
public void
seekCursorToPoint(double x, double y)
method_44410(double arg0, double arg1)
moveCursor(double x, double y)
public void
selectWordAtCursor()
method_72748()
selectWord()
public boolean
keyPressed(KeyEvent event)
method_44428(class_11908 arg0)
handleSpecialKey(KeyInput key)
public Iterable<EditBox$Substring>
iterateLines()
method_44434()
getLines()
public boolean
hasSelection()
method_44435()
hasSelection()
public String
getSelectedText()
method_44436()
getSelectedText()
private EditBox$Substring
getCursorLineView()
method_44439()
getCurrentLine()
private EditBox$Substring
getCursorLineView(int lineOffset)
method_44431(int arg0)
getOffsetLine(int offsetFromCurrent)
public EditBox$Substring
getPreviousWord()
method_44437()
getPreviousWordAtCursor()
public EditBox$Substring
getNextWord()
method_44438()
getNextWordAtCursor()
private int
getWordEndPosition(int from)
method_44433(int arg0)
getWordEndIndex(int startIndex)
private void
onValueChange()
method_44440()
onChange()
private void
reflowDisplayLines()
method_44441()
rewrap()
private String
truncateFullText(String input)
method_44423(String arg0)
truncateForReplacement(String value)
private String
truncateInsertionText(String input)
method_44426(String arg0)
truncate(String value)
private boolean
overflowsLineLimit(String newValue)
method_71519(String arg0)
exceedsMaxLines(String text)
private void
lambda$reflowDisplayLines$2(Style arg0, int arg1, int arg2)
method_44416(class_2583 arg0, int arg1, int arg2)
method_44416(Style style, int start, int end)
private static void
lambda$new$1()
method_44442()
method_44442()
private static void
lambda$new$0(String arg0)
method_44429(String arg0)
method_44429(String text)