@Environment(value=CLIENT) public class SelectionManager extends Object
Modifier and Type | Field and 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 and Description |
---|
SelectionManager(Supplier<String> supplier,
Consumer<String> consumer,
Supplier<String> supplier2,
Consumer<String> consumer2,
Predicate<String> predicate) |
Modifier and Type | Method and 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) |
public static Supplier<String> makeClipboardGetter(MinecraftClient client)
public static String getClipboard(MinecraftClient client)
public static Consumer<String> makeClipboardSetter(MinecraftClient client)
public static void setClipboard(MinecraftClient client, String string)
public boolean insert(char c)
public boolean handleSpecialKey(int keyCode)
private int method_27567(int int2)
public void insert(String string)
private void updateSelectionRange(boolean shiftDown)
public void moveCursor(int offset, boolean shiftDown)
public void moveCursorPastWord(int offset, boolean shiftDown)
public void delete(int cursorOffset)
public void cut()
public void paste()
public void copy()
public void selectAll()
private void method_27553(boolean bool)
public void moveCaretToEnd()
private void method_27558(boolean bool)
public int getSelectionStart()
public void method_27560(int int2, boolean bool)
public int getSelectionEnd()
public void method_27548(int int2, int int3)
public boolean method_27568()