net.minecraft.client.gui.components

public class MultilineTextField

fjh
net.minecraft.client.gui.components.MultilineTextField
net.minecraft.class_7530
net.minecraft.client.gui.EditBox
net.minecraft.src.C_238452_

Field summary

Modifier and TypeField
public static final int
a
NO_CHARACTER_LIMIT
field_39511
UNLIMITED_LENGTH
f_238667_
private static final int
b
LINE_SEEK_PIXEL_BIAS
field_39512
CURSOR_WIDTH
f_238620_
private final Font
c
font
field_39513
textRenderer
f_238538_
private final List<MultilineTextField$StringView>
d
displayLines
field_39514
lines
f_238722_
private String
e
value
field_39515
text
f_238645_
private int
f
cursor
field_39516
cursor
f_238566_
private int
g
selectCursor
field_39517
selectionEnd
f_238550_
private boolean
h
selecting
field_39518
selecting
f_238557_
private int
i
characterLimit
field_39519
maxLength
f_238569_
private final int
j
width
field_39520
width
f_238603_
private Consumer<String>
k
valueListener
field_39521
changeListener
f_238527_
private Runnable
l
cursorListener
field_39522
cursorChangeListener
f_238625_

Constructor summary

ModifierConstructor
public (Font textRenderer, int width)

Method summary

Modifier and TypeMethod
public int
a()
characterLimit()
method_44409()
getMaxLength()
m_239390_()
public void
a(int arg0)
setCharacterLimit(int arg0)
method_44411(int arg0)
setMaxLength(int maxLength)
m_240162_(int arg0)
public boolean
b()
hasCharacterLimit()
method_44418()
hasMaxLength()
m_239629_()
public void
a(Consumer<String> arg0)
setValueListener(Consumer<String> arg0)
method_44415(Consumer<String> arg0)
setChangeListener(Consumer<String> changeListener)
m_239919_(Consumer<String> arg0)
public void
a(Runnable arg0)
setCursorListener(Runnable arg0)
method_44413(Runnable arg0)
setCursorChangeListener(Runnable cursorChangeListener)
m_239257_(Runnable arg0)
public void
a(String arg0)
setValue(String arg0)
method_44414(String arg0)
setText(String text)
m_239677_(String arg0)
public String
c()
value()
method_44421()
getText()
m_239618_()
public void
b(String arg0)
insertText(String arg0)
method_44420(String arg0)
replaceSelection(String string)
m_240015_(String arg0)
public void
b(int arg0)
deleteText(int arg0)
method_44419(int arg0)
delete(int offset)
m_239474_(int arg0)
public int
d()
cursor()
method_44424()
getCursor()
m_239456_()
public void
a(boolean arg0)
setSelecting(boolean arg0)
method_44417(boolean arg0)
setSelecting(boolean selecting)
m_239950_(boolean arg0)
public MultilineTextField$StringView
e()
getSelected()
method_44427()
getSelection()
m_239982_()
public int
f()
getLineCount()
method_44430()
getLineCount()
m_239340_()
public int
g()
getLineAtCursor()
method_44432()
getCurrentLineIndex()
m_239268_()
public MultilineTextField$StringView
c(int arg0)
getLineView(int arg0)
method_44422(int arg0)
getLine(int index)
m_239144_(int arg0)
public void
a(fjy arg0, int arg1)
seekCursor(Whence arg0, int arg1)
method_44412(class_7533 arg0, int arg1)
moveCursor(CursorMovement movement, int amount)
m_239797_(C_238491_ p_239799_, int arg1)
public void
d(int arg0)
seekCursorLine(int arg0)
method_44425(int arg0)
moveCursorLine(int offset)
m_239393_(int arg0)
public void
a(double arg0, double arg1)
seekCursorToPoint(double arg0, double arg1)
method_44410(double arg0, double arg1)
moveCursor(double x, double y)
m_239578_(double p_239580_, double arg1)
public boolean
e(int arg0)
keyPressed(int arg0)
method_44428(int arg0)
handleSpecialKey(int keyCode)
m_239711_(int arg0)
public Iterable<MultilineTextField$StringView>
h()
iterateLines()
method_44434()
getLines()
m_239290_()
public boolean
i()
hasSelection()
method_44435()
hasSelection()
m_239344_()
public String
j()
getSelectedText()
method_44436()
getSelectedText()
m_240059_()
private MultilineTextField$StringView
m()
getCursorLineView()
method_44439()
getCurrentLine()
m_240043_()
private MultilineTextField$StringView
f(int arg0)
getCursorLineView(int arg0)
method_44431(int arg0)
getOffsetLine(int offsetFromCurrent)
m_239854_(int arg0)
public MultilineTextField$StringView
k()
getPreviousWord()
method_44437()
getPreviousWordAtCursor()
m_239637_()
public MultilineTextField$StringView
l()
getNextWord()
method_44438()
getNextWordAtCursor()
m_239361_()
private int
g(int arg0)
getWordEndPosition(int arg0)
method_44433(int arg0)
getWordEndIndex(int startIndex)
m_240092_(int arg0)
private void
n()
onValueChange()
method_44440()
onChange()
m_239743_()
private void
o()
reflowDisplayLines()
method_44441()
rewrap()
m_239915_()
private String
c(String arg0)
truncateFullText(String arg0)
method_44423(String arg0)
truncateForReplacement(String value)
m_239842_(String arg0)
private String
d(String arg0)
truncateInsertionText(String arg0)
method_44426(String arg0)
truncate(String value)
m_239417_(String arg0)