net.minecraft.client.gui.font

public class TextFieldHelper

flg
net.minecraft.client.gui.font.TextFieldHelper
net.minecraft.class_3728
net.minecraft.client.util.SelectionManager
net.minecraft.src.C_3515_

Field summary

Modifier and TypeField
private final Supplier<String>
a
getMessageFn
field_24257
stringGetter
f_95129_
private final Consumer<String>
b
setMessageFn
field_24258
stringSetter
f_95130_
private final Supplier<String>
c
getClipboardFn
field_16456
clipboardGetter
f_95131_
private final Consumer<String>
d
setClipboardFn
field_16458
clipboardSetter
f_95132_
private final Predicate<String>
e
stringValidator
field_24259
stringFilter
f_95133_
private int
f
cursorPos
field_16453
selectionStart
f_95134_
private int
g
selectionPos
field_16452
selectionEnd
f_95135_

Constructor summary

ModifierConstructor
public (Supplier<String> stringGetter, Consumer<String> stringSetter, Supplier<String> clipboardGetter, Consumer<String> clipboardSetter, Predicate<String> stringFilter)

Method summary

Modifier and TypeMethod
public static Supplier<String>
a(fgo arg0)
createClipboardGetter(Minecraft arg0)
method_27550(class_310 arg0)
makeClipboardGetter(MinecraftClient client)
m_95153_(C_3391_ p_95154_)
public static String
b(fgo arg0)
getClipboardContents(Minecraft arg0)
method_27556(class_310 arg0)
getClipboard(MinecraftClient client)
m_95169_(C_3391_ p_95170_)
public static Consumer<String>
c(fgo arg0)
createClipboardSetter(Minecraft arg0)
method_27561(class_310 arg0)
makeClipboardSetter(MinecraftClient client)
m_95182_(C_3391_ p_95183_)
public static void
a(fgo arg0, String arg1)
setClipboardContents(Minecraft arg0, String arg1)
method_27551(class_310 arg0, String arg1)
setClipboard(MinecraftClient client, String clipboard)
m_95155_(C_3391_ p_95156_, String p_95157_)
public boolean
a(char arg0)
charTyped(char arg0)
method_16199(char arg0)
insert(char c)
m_95143_(char arg0)
public boolean
a(int arg0)
keyPressed(int arg0)
method_16202(int arg0)
handleSpecialKey(int keyCode)
m_95145_(int arg0)
private int
h(int arg0)
clampToMsgLength(int arg0)
method_27567(int arg0)
clampCursorPosition(int pos)
m_95195_(int arg0)
private void
a(String arg0, String arg1)
insertText(String arg0, String arg1)
method_27552(String arg0, String arg1)
insert(String string, String insertion)
m_95160_(String p_95162_, String arg1)
public void
a(String arg0)
insertText(String arg0)
method_16197(String arg0)
insert(String string)
m_95158_(String arg0)
private void
c(boolean arg0)
resetSelectionIfNeeded(boolean arg0)
method_27562(boolean arg0)
updateSelectionRange(boolean shiftDown)
m_95163_(boolean arg0)
public void
a(int arg0, boolean arg1, flg$a arg2)
moveBy(int arg0, boolean arg1, TextFieldHelper$CursorStep arg2)
method_42575(int arg0, boolean arg1, class_3728$class_7279 arg2)
moveCursor(int offset, boolean shiftDown, SelectionManager$SelectionType selectionType)
m_232575_(int p_232577_, boolean p_232578_, C_3515_$C_213375_ arg2)
public void
b(int arg0)
moveByChars(int arg0)
method_35727(int arg0)
moveCursor(int offset)
m_169093_(int arg0)
public void
a(int arg0, boolean arg1)
moveByChars(int arg0, boolean arg1)
method_27549(int arg0, boolean arg1)
moveCursor(int offset, boolean shiftDown)
m_95150_(int p_95152_, boolean arg1)
public void
c(int arg0)
moveByWords(int arg0)
method_35728(int arg0)
moveCursorPastWord(int offset)
m_169095_(int arg0)
public void
b(int arg0, boolean arg1)
moveByWords(int arg0, boolean arg1)
method_27555(int arg0, boolean arg1)
moveCursorPastWord(int offset, boolean shiftDown)
m_95166_(int p_95168_, boolean arg1)
public void
a(int arg0, flg$a arg1)
removeFromCursor(int arg0, TextFieldHelper$CursorStep arg1)
method_42574(int arg0, class_3728$class_7279 arg1)
delete(int offset, SelectionManager$SelectionType selectionType)
m_232572_(int p_232574_, C_3515_$C_213375_ arg1)
public void
d(int arg0)
removeWordsFromCursor(int arg0)
method_42576(int arg0)
deleteWord(int offset)
m_232579_(int arg0)
public void
e(int arg0)
removeCharsFromCursor(int arg0)
method_27564(int arg0)
delete(int offset)
m_95189_(int arg0)
public void
a()
cut()
method_27547()
cut()
m_95142_()
public void
b()
paste()
method_27554()
paste()
m_95165_()
public void
c()
copy()
method_27559()
copy()
m_95178_()
public void
d()
selectAll()
method_27563()
selectAll()
m_95188_()
private String
b(String arg0)
getSelected(String arg0)
method_16200(String arg0)
getSelectedText(String string)
m_95174_(String arg0)
private String
c(String arg0)
deleteSelection(String arg0)
method_16198(String arg0)
deleteSelectedText(String string)
m_95184_(String arg0)
public void
e()
setCursorToStart()
method_35729()
moveCursorToStart()
m_169097_()
public void
a(boolean arg0)
setCursorToStart(boolean arg0)
method_27553(boolean arg0)
moveCursorToStart(boolean shiftDown)
m_95176_(boolean arg0)
public void
f()
setCursorToEnd()
method_16204()
putCursorAtEnd()
m_95193_()
public void
b(boolean arg0)
setCursorToEnd(boolean arg0)
method_27558(boolean arg0)
moveCursorToEnd(boolean shiftDown)
m_95186_(boolean arg0)
public int
g()
getCursorPos()
method_16201()
getSelectionStart()
m_95194_()
public void
f(int arg0)
setCursorPos(int arg0)
method_35730(int arg0)
moveCursorTo(int position)
m_169098_(int arg0)
public void
c(int arg0, boolean arg1)
setCursorPos(int arg0, boolean arg1)
method_27560(int arg0, boolean arg1)
moveCursorTo(int position, boolean shiftDown)
m_95179_(int p_95181_, boolean arg1)
public int
h()
getSelectionPos()
method_16203()
getSelectionEnd()
m_95197_()
public void
g(int arg0)
setSelectionPos(int arg0)
method_35731(int arg0)
setSelectionEnd(int pos)
m_169100_(int arg0)
public void
a(int arg0, int arg1)
setSelectionRange(int arg0, int arg1)
method_27548(int arg0, int arg1)
setSelection(int start, int end)
m_95147_(int p_95149_, int arg1)
public boolean
i()
isSelecting()
method_27568()
isSelecting()
m_95198_()