Package net.minecraft.client.util
Class SelectionManager
java.lang.Object
net.minecraft.client.util.SelectionManager
- Mappings:
Namespace Name official evh
intermediary net/minecraft/class_3728
named net/minecraft/client/util/SelectionManager
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
clampCursorPosition
(int pos) void
copy()
void
cut()
void
delete
(int offset) void
delete
(int offset, SelectionManager.SelectionType selectionType) private String
deleteSelectedText
(String string) void
deleteWord
(int offset) static String
getClipboard
(MinecraftClient client) private String
getSelectedText
(String string) int
int
boolean
handleSpecialKey
(int keyCode) boolean
insert
(char c) void
private void
boolean
makeClipboardGetter
(MinecraftClient client) makeClipboardSetter
(MinecraftClient client) void
moveCursor
(int offset) void
moveCursor
(int offset, boolean shiftDown) void
moveCursor
(int offset, boolean shiftDown, SelectionManager.SelectionType selectionType) void
moveCursorPastWord
(int offset) void
moveCursorPastWord
(int offset, boolean shiftDown) void
moveCursorTo
(int position) void
moveCursorTo
(int position, boolean shiftDown) void
moveCursorToEnd
(boolean shiftDown) void
void
moveCursorToStart
(boolean shiftDown) void
paste()
void
void
static void
setClipboard
(MinecraftClient client, String clipboard) void
setSelection
(int start, int end) void
setSelectionEnd
(int pos) private void
updateSelectionRange
(boolean shiftDown)
-
Field Details
-
stringGetter
- Mappings:
Namespace Name Mixin selector official a
Levh;a:Ljava/util/function/Supplier;
intermediary field_24257
Lnet/minecraft/class_3728;field_24257:Ljava/util/function/Supplier;
named stringGetter
Lnet/minecraft/client/util/SelectionManager;stringGetter:Ljava/util/function/Supplier;
-
stringSetter
- Mappings:
Namespace Name Mixin selector official b
Levh;b:Ljava/util/function/Consumer;
intermediary field_24258
Lnet/minecraft/class_3728;field_24258:Ljava/util/function/Consumer;
named stringSetter
Lnet/minecraft/client/util/SelectionManager;stringSetter:Ljava/util/function/Consumer;
-
clipboardGetter
- Mappings:
Namespace Name Mixin selector official c
Levh;c:Ljava/util/function/Supplier;
intermediary field_16456
Lnet/minecraft/class_3728;field_16456:Ljava/util/function/Supplier;
named clipboardGetter
Lnet/minecraft/client/util/SelectionManager;clipboardGetter:Ljava/util/function/Supplier;
-
clipboardSetter
- Mappings:
Namespace Name Mixin selector official d
Levh;d:Ljava/util/function/Consumer;
intermediary field_16458
Lnet/minecraft/class_3728;field_16458:Ljava/util/function/Consumer;
named clipboardSetter
Lnet/minecraft/client/util/SelectionManager;clipboardSetter:Ljava/util/function/Consumer;
-
stringFilter
- Mappings:
Namespace Name Mixin selector official e
Levh;e:Ljava/util/function/Predicate;
intermediary field_24259
Lnet/minecraft/class_3728;field_24259:Ljava/util/function/Predicate;
named stringFilter
Lnet/minecraft/client/util/SelectionManager;stringFilter:Ljava/util/function/Predicate;
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector official f
Levh;f:I
intermediary field_16453
Lnet/minecraft/class_3728;field_16453:I
named selectionStart
Lnet/minecraft/client/util/SelectionManager;selectionStart:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector official g
Levh;g:I
intermediary field_16452
Lnet/minecraft/class_3728;field_16452:I
named selectionEnd
Lnet/minecraft/client/util/SelectionManager;selectionEnd:I
-
-
Constructor Details
-
SelectionManager
public SelectionManager(Supplier<String> stringGetter, Consumer<String> stringSetter, Supplier<String> clipboardGetter, Consumer<String> clipboardSetter, Predicate<String> stringFilter) - Mappings:
Namespace Name Mixin selector official <init>
Levh;<init>(Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_3728;<init>(Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/client/util/SelectionManager;<init>(Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
-
-
Method Details
-
makeClipboardGetter
- Mappings:
Namespace Name Mixin selector official a
Levh;a(Leqv;)Ljava/util/function/Supplier;
intermediary method_27550
Lnet/minecraft/class_3728;method_27550(Lnet/minecraft/class_310;)Ljava/util/function/Supplier;
named makeClipboardGetter
Lnet/minecraft/client/util/SelectionManager;makeClipboardGetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Supplier;
-
getClipboard
- Mappings:
Namespace Name Mixin selector official b
Levh;b(Leqv;)Ljava/lang/String;
intermediary method_27556
Lnet/minecraft/class_3728;method_27556(Lnet/minecraft/class_310;)Ljava/lang/String;
named getClipboard
Lnet/minecraft/client/util/SelectionManager;getClipboard(Lnet/minecraft/client/MinecraftClient;)Ljava/lang/String;
-
makeClipboardSetter
- Mappings:
Namespace Name Mixin selector official c
Levh;c(Leqv;)Ljava/util/function/Consumer;
intermediary method_27561
Lnet/minecraft/class_3728;method_27561(Lnet/minecraft/class_310;)Ljava/util/function/Consumer;
named makeClipboardSetter
Lnet/minecraft/client/util/SelectionManager;makeClipboardSetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Consumer;
-
setClipboard
- Mappings:
Namespace Name Mixin selector official a
Levh;a(Leqv;Ljava/lang/String;)V
intermediary method_27551
Lnet/minecraft/class_3728;method_27551(Lnet/minecraft/class_310;Ljava/lang/String;)V
named setClipboard
Lnet/minecraft/client/util/SelectionManager;setClipboard(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
-
insert
public boolean insert(char c) - Mappings:
Namespace Name Mixin selector official a
Levh;a(C)Z
intermediary method_16199
Lnet/minecraft/class_3728;method_16199(C)Z
named insert
Lnet/minecraft/client/util/SelectionManager;insert(C)Z
-
handleSpecialKey
public boolean handleSpecialKey(int keyCode) - Mappings:
Namespace Name Mixin selector official a
Levh;a(I)Z
intermediary method_16202
Lnet/minecraft/class_3728;method_16202(I)Z
named handleSpecialKey
Lnet/minecraft/client/util/SelectionManager;handleSpecialKey(I)Z
-
clampCursorPosition
private int clampCursorPosition(int pos) - Mappings:
Namespace Name Mixin selector official h
Levh;h(I)I
intermediary method_27567
Lnet/minecraft/class_3728;method_27567(I)I
named clampCursorPosition
Lnet/minecraft/client/util/SelectionManager;clampCursorPosition(I)I
-
insert
- Mappings:
Namespace Name Mixin selector official a
Levh;a(Ljava/lang/String;Ljava/lang/String;)V
intermediary method_27552
Lnet/minecraft/class_3728;method_27552(Ljava/lang/String;Ljava/lang/String;)V
named insert
Lnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;Ljava/lang/String;)V
-
insert
- Mappings:
Namespace Name Mixin selector official a
Levh;a(Ljava/lang/String;)V
intermediary method_16197
Lnet/minecraft/class_3728;method_16197(Ljava/lang/String;)V
named insert
Lnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;)V
-
updateSelectionRange
private void updateSelectionRange(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official c
Levh;c(Z)V
intermediary method_27562
Lnet/minecraft/class_3728;method_27562(Z)V
named updateSelectionRange
Lnet/minecraft/client/util/SelectionManager;updateSelectionRange(Z)V
-
moveCursor
- Mappings:
Namespace Name Mixin selector official a
Levh;a(IZLevh$a;)V
intermediary method_42575
Lnet/minecraft/class_3728;method_42575(IZLnet/minecraft/class_3728$class_7279;)V
named moveCursor
Lnet/minecraft/client/util/SelectionManager;moveCursor(IZLnet/minecraft/client/util/SelectionManager$SelectionType;)V
-
moveCursor
public void moveCursor(int offset) - Mappings:
Namespace Name Mixin selector official b
Levh;b(I)V
intermediary method_35727
Lnet/minecraft/class_3728;method_35727(I)V
named moveCursor
Lnet/minecraft/client/util/SelectionManager;moveCursor(I)V
-
moveCursor
public void moveCursor(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official a
Levh;a(IZ)V
intermediary method_27549
Lnet/minecraft/class_3728;method_27549(IZ)V
named moveCursor
Lnet/minecraft/client/util/SelectionManager;moveCursor(IZ)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset) - Mappings:
Namespace Name Mixin selector official c
Levh;c(I)V
intermediary method_35728
Lnet/minecraft/class_3728;method_35728(I)V
named moveCursorPastWord
Lnet/minecraft/client/util/SelectionManager;moveCursorPastWord(I)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official b
Levh;b(IZ)V
intermediary method_27555
Lnet/minecraft/class_3728;method_27555(IZ)V
named moveCursorPastWord
Lnet/minecraft/client/util/SelectionManager;moveCursorPastWord(IZ)V
-
delete
- Mappings:
Namespace Name Mixin selector official a
Levh;a(ILevh$a;)V
intermediary method_42574
Lnet/minecraft/class_3728;method_42574(ILnet/minecraft/class_3728$class_7279;)V
named delete
Lnet/minecraft/client/util/SelectionManager;delete(ILnet/minecraft/client/util/SelectionManager$SelectionType;)V
-
deleteWord
public void deleteWord(int offset) - Mappings:
Namespace Name Mixin selector official d
Levh;d(I)V
intermediary method_42576
Lnet/minecraft/class_3728;method_42576(I)V
named deleteWord
Lnet/minecraft/client/util/SelectionManager;deleteWord(I)V
-
delete
public void delete(int offset) - Mappings:
Namespace Name Mixin selector official e
Levh;e(I)V
intermediary method_27564
Lnet/minecraft/class_3728;method_27564(I)V
named delete
Lnet/minecraft/client/util/SelectionManager;delete(I)V
-
cut
public void cut()- Mappings:
Namespace Name Mixin selector official a
Levh;a()V
intermediary method_27547
Lnet/minecraft/class_3728;method_27547()V
named cut
Lnet/minecraft/client/util/SelectionManager;cut()V
-
paste
public void paste()- Mappings:
Namespace Name Mixin selector official b
Levh;b()V
intermediary method_27554
Lnet/minecraft/class_3728;method_27554()V
named paste
Lnet/minecraft/client/util/SelectionManager;paste()V
-
copy
public void copy()- Mappings:
Namespace Name Mixin selector official c
Levh;c()V
intermediary method_27559
Lnet/minecraft/class_3728;method_27559()V
named copy
Lnet/minecraft/client/util/SelectionManager;copy()V
-
selectAll
public void selectAll()- Mappings:
Namespace Name Mixin selector official d
Levh;d()V
intermediary method_27563
Lnet/minecraft/class_3728;method_27563()V
named selectAll
Lnet/minecraft/client/util/SelectionManager;selectAll()V
-
getSelectedText
- Mappings:
Namespace Name Mixin selector official b
Levh;b(Ljava/lang/String;)Ljava/lang/String;
intermediary method_16200
Lnet/minecraft/class_3728;method_16200(Ljava/lang/String;)Ljava/lang/String;
named getSelectedText
Lnet/minecraft/client/util/SelectionManager;getSelectedText(Ljava/lang/String;)Ljava/lang/String;
-
deleteSelectedText
- Mappings:
Namespace Name Mixin selector official c
Levh;c(Ljava/lang/String;)Ljava/lang/String;
intermediary method_16198
Lnet/minecraft/class_3728;method_16198(Ljava/lang/String;)Ljava/lang/String;
named deleteSelectedText
Lnet/minecraft/client/util/SelectionManager;deleteSelectedText(Ljava/lang/String;)Ljava/lang/String;
-
moveCursorToStart
public void moveCursorToStart()- Mappings:
Namespace Name Mixin selector official e
Levh;e()V
intermediary method_35729
Lnet/minecraft/class_3728;method_35729()V
named moveCursorToStart
Lnet/minecraft/client/util/SelectionManager;moveCursorToStart()V
-
moveCursorToStart
public void moveCursorToStart(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official a
Levh;a(Z)V
intermediary method_27553
Lnet/minecraft/class_3728;method_27553(Z)V
named moveCursorToStart
Lnet/minecraft/client/util/SelectionManager;moveCursorToStart(Z)V
-
putCursorAtEnd
public void putCursorAtEnd()- Mappings:
Namespace Name Mixin selector official f
Levh;f()V
intermediary method_16204
Lnet/minecraft/class_3728;method_16204()V
named putCursorAtEnd
Lnet/minecraft/client/util/SelectionManager;putCursorAtEnd()V
-
moveCursorToEnd
public void moveCursorToEnd(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official b
Levh;b(Z)V
intermediary method_27558
Lnet/minecraft/class_3728;method_27558(Z)V
named moveCursorToEnd
Lnet/minecraft/client/util/SelectionManager;moveCursorToEnd(Z)V
-
getSelectionStart
public int getSelectionStart()- Mappings:
Namespace Name Mixin selector official g
Levh;g()I
intermediary method_16201
Lnet/minecraft/class_3728;method_16201()I
named getSelectionStart
Lnet/minecraft/client/util/SelectionManager;getSelectionStart()I
-
moveCursorTo
public void moveCursorTo(int position) - Mappings:
Namespace Name Mixin selector official f
Levh;f(I)V
intermediary method_35730
Lnet/minecraft/class_3728;method_35730(I)V
named moveCursorTo
Lnet/minecraft/client/util/SelectionManager;moveCursorTo(I)V
-
moveCursorTo
public void moveCursorTo(int position, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official c
Levh;c(IZ)V
intermediary method_27560
Lnet/minecraft/class_3728;method_27560(IZ)V
named moveCursorTo
Lnet/minecraft/client/util/SelectionManager;moveCursorTo(IZ)V
-
getSelectionEnd
public int getSelectionEnd()- Mappings:
Namespace Name Mixin selector official h
Levh;h()I
intermediary method_16203
Lnet/minecraft/class_3728;method_16203()I
named getSelectionEnd
Lnet/minecraft/client/util/SelectionManager;getSelectionEnd()I
-
setSelectionEnd
public void setSelectionEnd(int pos) - Mappings:
Namespace Name Mixin selector official g
Levh;g(I)V
intermediary method_35731
Lnet/minecraft/class_3728;method_35731(I)V
named setSelectionEnd
Lnet/minecraft/client/util/SelectionManager;setSelectionEnd(I)V
-
setSelection
public void setSelection(int start, int end) - Mappings:
Namespace Name Mixin selector official a
Levh;a(II)V
intermediary method_27548
Lnet/minecraft/class_3728;method_27548(II)V
named setSelection
Lnet/minecraft/client/util/SelectionManager;setSelection(II)V
-
isSelecting
public boolean isSelecting()- Mappings:
Namespace Name Mixin selector official i
Levh;i()Z
intermediary method_27568
Lnet/minecraft/class_3728;method_27568()Z
named isSelecting
Lnet/minecraft/client/util/SelectionManager;isSelecting()Z
-