net.minecraft.client.gui.font

public class TextFieldHelper

frb
net.minecraft.client.gui.font.TextFieldHelper
net.minecraft.class_3728
net.minecraft.client.util.SelectionManager

Field summary

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

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(fmg arg0)
createClipboardGetter(Minecraft arg0)
method_27550(class_310 arg0)
makeClipboardGetter(MinecraftClient client)
public static String
b(fmg arg0)
getClipboardContents(Minecraft arg0)
method_27556(class_310 arg0)
getClipboard(MinecraftClient client)
public static Consumer<String>
c(fmg arg0)
createClipboardSetter(Minecraft arg0)
method_27561(class_310 arg0)
makeClipboardSetter(MinecraftClient client)
public static void
a(fmg arg0, String arg1)
setClipboardContents(Minecraft arg0, String arg1)
method_27551(class_310 arg0, String arg1)
setClipboard(MinecraftClient client, String clipboard)
public boolean
a(char arg0)
charTyped(char arg0)
method_16199(char arg0)
insert(char c)
public boolean
a(int arg0)
keyPressed(int arg0)
method_16202(int arg0)
handleSpecialKey(int keyCode)
private int
h(int arg0)
clampToMsgLength(int arg0)
method_27567(int arg0)
clampCursorPosition(int pos)
private void
a(String arg0, String arg1)
insertText(String arg0, String arg1)
method_27552(String arg0, String arg1)
insert(String string, String insertion)
public void
a(String arg0)
insertText(String arg0)
method_16197(String arg0)
insert(String string)
private void
c(boolean arg0)
resetSelectionIfNeeded(boolean arg0)
method_27562(boolean arg0)
updateSelectionRange(boolean shiftDown)
public void
a(int arg0, boolean arg1, frb$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)
public void
b(int arg0)
moveByChars(int arg0)
method_35727(int arg0)
moveCursor(int offset)
public void
a(int arg0, boolean arg1)
moveByChars(int arg0, boolean arg1)
method_27549(int arg0, boolean arg1)
moveCursor(int offset, boolean shiftDown)
public void
c(int arg0)
moveByWords(int arg0)
method_35728(int arg0)
moveCursorPastWord(int offset)
public void
b(int arg0, boolean arg1)
moveByWords(int arg0, boolean arg1)
method_27555(int arg0, boolean arg1)
moveCursorPastWord(int offset, boolean shiftDown)
public void
a(int arg0, frb$a arg1)
removeFromCursor(int arg0, TextFieldHelper$CursorStep arg1)
method_42574(int arg0, class_3728$class_7279 arg1)
delete(int offset, SelectionManager$SelectionType selectionType)
public void
d(int arg0)
removeWordsFromCursor(int arg0)
method_42576(int arg0)
deleteWord(int offset)
public void
e(int arg0)
removeCharsFromCursor(int arg0)
method_27564(int arg0)
delete(int offset)
public void
a()
cut()
method_27547()
cut()
public void
b()
paste()
method_27554()
paste()
public void
c()
copy()
method_27559()
copy()
public void
d()
selectAll()
method_27563()
selectAll()
private String
b(String arg0)
getSelected(String arg0)
method_16200(String arg0)
getSelectedText(String string)
private String
c(String arg0)
deleteSelection(String arg0)
method_16198(String arg0)
deleteSelectedText(String string)
public void
e()
setCursorToStart()
method_35729()
moveCursorToStart()
public void
a(boolean arg0)
setCursorToStart(boolean arg0)
method_27553(boolean arg0)
moveCursorToStart(boolean shiftDown)
public void
f()
setCursorToEnd()
method_16204()
putCursorAtEnd()
public void
b(boolean arg0)
setCursorToEnd(boolean arg0)
method_27558(boolean arg0)
moveCursorToEnd(boolean shiftDown)
public int
g()
getCursorPos()
method_16201()
getSelectionStart()
public void
f(int arg0)
setCursorPos(int arg0)
method_35730(int arg0)
moveCursorTo(int position)
public void
c(int arg0, boolean arg1)
setCursorPos(int arg0, boolean arg1)
method_27560(int arg0, boolean arg1)
moveCursorTo(int position, boolean shiftDown)
public int
h()
getSelectionPos()
method_16203()
getSelectionEnd()
public void
g(int arg0)
setSelectionPos(int arg0)
method_35731(int arg0)
setSelectionEnd(int pos)
public void
a(int arg0, int arg1)
setSelectionRange(int arg0, int arg1)
method_27548(int arg0, int arg1)
setSelection(int start, int end)
public boolean
i()
isSelecting()
method_27568()
isSelecting()