Package net.minecraft.client.util
Class SelectionManager
java.lang.Object
net.minecraft.client.util.SelectionManager
@Environment(CLIENT) public class SelectionManager extends Object
-
Field Summary
Fields Modifier and Type Field Description private Supplier<String>
clipboardGetter
private Consumer<String>
clipboardSetter
private int
selectionEnd
private int
selectionStart
private Predicate<String>
stringFilter
private Supplier<String>
stringGetter
private Consumer<String>
stringSetter
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
copy()
void
cut()
void
delete(int cursorOffset)
private String
deleteSelectedText(String string)
static String
getClipboard(MinecraftClient client)
private String
getSelectedText(String string)
int
getSelectionEnd()
int
getSelectionStart()
boolean
handleSpecialKey(int keyCode)
boolean
insert(char c)
void
insert(String string)
private void
insert(String string, String insertion)
static Supplier<String>
makeClipboardGetter(MinecraftClient client)
static Consumer<String>
makeClipboardSetter(MinecraftClient client)
void
method_27548(int int2, int int3)
private void
method_27553(boolean bool)
private void
method_27558(boolean bool)
void
method_27560(int int2, boolean bool)
private int
method_27567(int int2)
boolean
method_27568()
void
moveCaretToEnd()
void
moveCursor(int offset, boolean shiftDown)
void
moveCursorPastWord(int offset, boolean shiftDown)
void
paste()
void
selectAll()
static void
setClipboard(MinecraftClient client, String string)
private void
updateSelectionRange(boolean shiftDown)
-
Field Details
-
stringGetter
-
stringSetter
-
clipboardGetter
-
clipboardSetter
-
stringFilter
-
selectionStart
private int selectionStart -
selectionEnd
private int selectionEnd
-
-
Constructor Details
-
SelectionManager
-
-
Method Details
-
makeClipboardGetter
-
getClipboard
-
makeClipboardSetter
-
setClipboard
-
insert
public boolean insert(char c) -
handleSpecialKey
public boolean handleSpecialKey(int keyCode) -
method_27567
private int method_27567(int int2) -
insert
-
insert
-
updateSelectionRange
private void updateSelectionRange(boolean shiftDown) -
moveCursor
public void moveCursor(int offset, boolean shiftDown) -
moveCursorPastWord
public void moveCursorPastWord(int offset, boolean shiftDown) -
delete
public void delete(int cursorOffset) -
cut
public void cut() -
paste
public void paste() -
copy
public void copy() -
selectAll
public void selectAll() -
getSelectedText
-
deleteSelectedText
-
method_27553
private void method_27553(boolean bool) -
moveCaretToEnd
public void moveCaretToEnd() -
method_27558
private void method_27558(boolean bool) -
getSelectionStart
public int getSelectionStart() -
method_27560
public void method_27560(int int2, boolean bool) -
getSelectionEnd
public int getSelectionEnd() -
method_27548
public void method_27548(int int2, int int3) -
method_27568
public boolean method_27568()
-