Class MultilineTextField
java.lang.Object
net.minecraft.client.gui.components.MultilineTextField
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private Runnable
private final List
<MultilineTextField.StringView> private final Font
private static final int
static final int
private int
private boolean
private String
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
cursor()
void
deleteText
(int p_239475_) private MultilineTextField.StringView
private MultilineTextField.StringView
getCursorLineView
(int p_239855_) int
int
getLineView
(int p_239145_) private int
getWordEndPosition
(int p_240093_) boolean
boolean
void
insertText
(String p_240016_) boolean
keyPressed
(int p_239712_) private void
private void
void
seekCursor
(Whence p_239798_, int p_239799_) void
seekCursorLine
(int p_239394_) void
seekCursorToPoint
(double p_239579_, double p_239580_) void
setCharacterLimit
(int p_240163_) void
setCursorListener
(Runnable p_239258_) void
setSelecting
(boolean p_239951_) void
void
setValueListener
(Consumer<String> p_239920_) private String
truncateFullText
(String p_239843_) private String
truncateInsertionText
(String p_239418_) value()
-
Field Details
-
NO_CHARACTER_LIMIT
public static final int NO_CHARACTER_LIMIT- See Also:
-
LINE_SEEK_PIXEL_BIAS
private static final int LINE_SEEK_PIXEL_BIAS- See Also:
-
font
-
displayLines
-
value
-
cursor
private int cursor -
selectCursor
private int selectCursor -
selecting
private boolean selecting -
characterLimit
private int characterLimit -
width
private final int width -
valueListener
-
cursorListener
-
-
Constructor Details
-
MultilineTextField
-
-
Method Details
-
characterLimit
public int characterLimit() -
setCharacterLimit
public void setCharacterLimit(int p_240163_) -
hasCharacterLimit
public boolean hasCharacterLimit() -
setValueListener
-
setCursorListener
-
setValue
-
value
-
insertText
-
deleteText
public void deleteText(int p_239475_) -
cursor
public int cursor() -
setSelecting
public void setSelecting(boolean p_239951_) -
getSelected
-
getLineCount
public int getLineCount() -
getLineAtCursor
public int getLineAtCursor() -
getLineView
-
seekCursor
-
seekCursorLine
public void seekCursorLine(int p_239394_) -
seekCursorToPoint
public void seekCursorToPoint(double p_239579_, double p_239580_) -
keyPressed
public boolean keyPressed(int p_239712_) -
iterateLines
-
hasSelection
public boolean hasSelection() -
getSelectedText
-
getCursorLineView
-
getCursorLineView
-
getPreviousWord
-
getNextWord
-
getWordEndPosition
private int getWordEndPosition(int p_240093_) -
onValueChange
private void onValueChange() -
reflowDisplayLines
private void reflowDisplayLines() -
truncateFullText
-
truncateInsertionText
-