Package net.minecraft.client.util
Class SelectionManager
java.lang.Object
net.minecraft.client.util.SelectionManager
- Mappings:
Namespace Name named net/minecraft/client/util/SelectionManagerintermediary net/minecraft/class_3728official glk
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intclampCursorPosition(int pos) voidcopy()voidcut()voiddelete(int offset) voiddelete(int offset, SelectionManager.SelectionType selectionType) private StringdeleteSelectedText(String string) voiddeleteWord(int offset) static StringgetClipboard(MinecraftClient client) private StringgetSelectedText(String string) intintbooleanhandleSpecialKey(KeyInput input) voidprivate voidbooleanbooleanmakeClipboardGetter(MinecraftClient client) makeClipboardSetter(MinecraftClient client) voidmoveCursor(int offset) voidmoveCursor(int offset, boolean shiftDown) voidmoveCursor(int offset, boolean shiftDown, SelectionManager.SelectionType selectionType) voidmoveCursorPastWord(int offset) voidmoveCursorPastWord(int offset, boolean shiftDown) voidmoveCursorTo(int position) voidmoveCursorTo(int position, boolean shiftDown) voidmoveCursorToEnd(boolean shiftDown) voidvoidmoveCursorToStart(boolean shiftDown) voidpaste()voidvoidstatic voidsetClipboard(MinecraftClient client, String clipboard) voidsetSelection(int start, int end) voidsetSelectionEnd(int pos) private voidupdateSelectionRange(boolean shiftDown)
-
Field Details
-
stringGetter
- Mappings:
Namespace Name Mixin selector named stringGetterLnet/minecraft/client/util/SelectionManager;stringGetter:Ljava/util/function/Supplier;intermediary field_24257Lnet/minecraft/class_3728;field_24257:Ljava/util/function/Supplier;official aLglk;a:Ljava/util/function/Supplier;
-
stringSetter
- Mappings:
Namespace Name Mixin selector named stringSetterLnet/minecraft/client/util/SelectionManager;stringSetter:Ljava/util/function/Consumer;intermediary field_24258Lnet/minecraft/class_3728;field_24258:Ljava/util/function/Consumer;official bLglk;b:Ljava/util/function/Consumer;
-
clipboardGetter
- Mappings:
Namespace Name Mixin selector named clipboardGetterLnet/minecraft/client/util/SelectionManager;clipboardGetter:Ljava/util/function/Supplier;intermediary field_16456Lnet/minecraft/class_3728;field_16456:Ljava/util/function/Supplier;official cLglk;c:Ljava/util/function/Supplier;
-
clipboardSetter
- Mappings:
Namespace Name Mixin selector named clipboardSetterLnet/minecraft/client/util/SelectionManager;clipboardSetter:Ljava/util/function/Consumer;intermediary field_16458Lnet/minecraft/class_3728;field_16458:Ljava/util/function/Consumer;official dLglk;d:Ljava/util/function/Consumer;
-
stringFilter
- Mappings:
Namespace Name Mixin selector named stringFilterLnet/minecraft/client/util/SelectionManager;stringFilter:Ljava/util/function/Predicate;intermediary field_24259Lnet/minecraft/class_3728;field_24259:Ljava/util/function/Predicate;official eLglk;e:Ljava/util/function/Predicate;
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector named selectionStartLnet/minecraft/client/util/SelectionManager;selectionStart:Iintermediary field_16453Lnet/minecraft/class_3728;field_16453:Iofficial fLglk;f:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector named selectionEndLnet/minecraft/client/util/SelectionManager;selectionEnd:Iintermediary field_16452Lnet/minecraft/class_3728;field_16452:Iofficial gLglk;g: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 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;)Vintermediary <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;)Vofficial <init>Lglk;<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 named makeClipboardGetterLnet/minecraft/client/util/SelectionManager;makeClipboardGetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Supplier;intermediary method_27550Lnet/minecraft/class_3728;method_27550(Lnet/minecraft/class_310;)Ljava/util/function/Supplier;official aLglk;a(Lgcx;)Ljava/util/function/Supplier;
-
getClipboard
- Mappings:
Namespace Name Mixin selector named getClipboardLnet/minecraft/client/util/SelectionManager;getClipboard(Lnet/minecraft/client/MinecraftClient;)Ljava/lang/String;intermediary method_27556Lnet/minecraft/class_3728;method_27556(Lnet/minecraft/class_310;)Ljava/lang/String;official bLglk;b(Lgcx;)Ljava/lang/String;
-
makeClipboardSetter
- Mappings:
Namespace Name Mixin selector named makeClipboardSetterLnet/minecraft/client/util/SelectionManager;makeClipboardSetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Consumer;intermediary method_27561Lnet/minecraft/class_3728;method_27561(Lnet/minecraft/class_310;)Ljava/util/function/Consumer;official cLglk;c(Lgcx;)Ljava/util/function/Consumer;
-
setClipboard
- Mappings:
Namespace Name Mixin selector named setClipboardLnet/minecraft/client/util/SelectionManager;setClipboard(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)Vintermediary method_27551Lnet/minecraft/class_3728;method_27551(Lnet/minecraft/class_310;Ljava/lang/String;)Vofficial aLglk;a(Lgcx;Ljava/lang/String;)V
-
insert
- Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/client/util/SelectionManager;insert(Lnet/minecraft/client/input/CharInput;)Zintermediary method_16199Lnet/minecraft/class_3728;method_16199(Lnet/minecraft/class_11905;)Zofficial aLglk;a(Lgwi;)Z
-
handleSpecialKey
- Mappings:
Namespace Name Mixin selector named handleSpecialKeyLnet/minecraft/client/util/SelectionManager;handleSpecialKey(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_16202Lnet/minecraft/class_3728;method_16202(Lnet/minecraft/class_11908;)Zofficial aLglk;a(Lgwl;)Z
-
clampCursorPosition
private int clampCursorPosition(int pos) - Mappings:
Namespace Name Mixin selector named clampCursorPositionLnet/minecraft/client/util/SelectionManager;clampCursorPosition(I)Iintermediary method_27567Lnet/minecraft/class_3728;method_27567(I)Iofficial gLglk;g(I)I
-
insert
- Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;Ljava/lang/String;)Vintermediary method_27552Lnet/minecraft/class_3728;method_27552(Ljava/lang/String;Ljava/lang/String;)Vofficial aLglk;a(Ljava/lang/String;Ljava/lang/String;)V
-
insert
- Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;)Vintermediary method_16197Lnet/minecraft/class_3728;method_16197(Ljava/lang/String;)Vofficial aLglk;a(Ljava/lang/String;)V
-
updateSelectionRange
private void updateSelectionRange(boolean shiftDown) - Mappings:
Namespace Name Mixin selector named updateSelectionRangeLnet/minecraft/client/util/SelectionManager;updateSelectionRange(Z)Vintermediary method_27562Lnet/minecraft/class_3728;method_27562(Z)Vofficial cLglk;c(Z)V
-
moveCursor
- Mappings:
Namespace Name Mixin selector named moveCursorLnet/minecraft/client/util/SelectionManager;moveCursor(IZLnet/minecraft/client/util/SelectionManager$SelectionType;)Vintermediary method_42575Lnet/minecraft/class_3728;method_42575(IZLnet/minecraft/class_3728$class_7279;)Vofficial aLglk;a(IZLglk$a;)V
-
moveCursor
public void moveCursor(int offset) - Mappings:
Namespace Name Mixin selector named moveCursorLnet/minecraft/client/util/SelectionManager;moveCursor(I)Vintermediary method_35727Lnet/minecraft/class_3728;method_35727(I)Vofficial aLglk;a(I)V
-
moveCursor
public void moveCursor(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector named moveCursorLnet/minecraft/client/util/SelectionManager;moveCursor(IZ)Vintermediary method_27549Lnet/minecraft/class_3728;method_27549(IZ)Vofficial aLglk;a(IZ)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset) - Mappings:
Namespace Name Mixin selector named moveCursorPastWordLnet/minecraft/client/util/SelectionManager;moveCursorPastWord(I)Vintermediary method_35728Lnet/minecraft/class_3728;method_35728(I)Vofficial bLglk;b(I)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector named moveCursorPastWordLnet/minecraft/client/util/SelectionManager;moveCursorPastWord(IZ)Vintermediary method_27555Lnet/minecraft/class_3728;method_27555(IZ)Vofficial bLglk;b(IZ)V
-
delete
- Mappings:
Namespace Name Mixin selector named deleteLnet/minecraft/client/util/SelectionManager;delete(ILnet/minecraft/client/util/SelectionManager$SelectionType;)Vintermediary method_42574Lnet/minecraft/class_3728;method_42574(ILnet/minecraft/class_3728$class_7279;)Vofficial aLglk;a(ILglk$a;)V
-
deleteWord
public void deleteWord(int offset) - Mappings:
Namespace Name Mixin selector named deleteWordLnet/minecraft/client/util/SelectionManager;deleteWord(I)Vintermediary method_42576Lnet/minecraft/class_3728;method_42576(I)Vofficial cLglk;c(I)V
-
delete
public void delete(int offset) - Mappings:
Namespace Name Mixin selector named deleteLnet/minecraft/client/util/SelectionManager;delete(I)Vintermediary method_27564Lnet/minecraft/class_3728;method_27564(I)Vofficial dLglk;d(I)V
-
cut
public void cut()- Mappings:
Namespace Name Mixin selector named cutLnet/minecraft/client/util/SelectionManager;cut()Vintermediary method_27547Lnet/minecraft/class_3728;method_27547()Vofficial aLglk;a()V
-
paste
public void paste()- Mappings:
Namespace Name Mixin selector named pasteLnet/minecraft/client/util/SelectionManager;paste()Vintermediary method_27554Lnet/minecraft/class_3728;method_27554()Vofficial bLglk;b()V
-
copy
public void copy()- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/client/util/SelectionManager;copy()Vintermediary method_27559Lnet/minecraft/class_3728;method_27559()Vofficial cLglk;c()V
-
selectAll
public void selectAll()- Mappings:
Namespace Name Mixin selector named selectAllLnet/minecraft/client/util/SelectionManager;selectAll()Vintermediary method_27563Lnet/minecraft/class_3728;method_27563()Vofficial dLglk;d()V
-
getSelectedText
- Mappings:
Namespace Name Mixin selector named getSelectedTextLnet/minecraft/client/util/SelectionManager;getSelectedText(Ljava/lang/String;)Ljava/lang/String;intermediary method_16200Lnet/minecraft/class_3728;method_16200(Ljava/lang/String;)Ljava/lang/String;official bLglk;b(Ljava/lang/String;)Ljava/lang/String;
-
deleteSelectedText
- Mappings:
Namespace Name Mixin selector named deleteSelectedTextLnet/minecraft/client/util/SelectionManager;deleteSelectedText(Ljava/lang/String;)Ljava/lang/String;intermediary method_16198Lnet/minecraft/class_3728;method_16198(Ljava/lang/String;)Ljava/lang/String;official cLglk;c(Ljava/lang/String;)Ljava/lang/String;
-
moveCursorToStart
public void moveCursorToStart()- Mappings:
Namespace Name Mixin selector named moveCursorToStartLnet/minecraft/client/util/SelectionManager;moveCursorToStart()Vintermediary method_35729Lnet/minecraft/class_3728;method_35729()Vofficial eLglk;e()V
-
moveCursorToStart
public void moveCursorToStart(boolean shiftDown) - Mappings:
Namespace Name Mixin selector named moveCursorToStartLnet/minecraft/client/util/SelectionManager;moveCursorToStart(Z)Vintermediary method_27553Lnet/minecraft/class_3728;method_27553(Z)Vofficial aLglk;a(Z)V
-
putCursorAtEnd
public void putCursorAtEnd()- Mappings:
Namespace Name Mixin selector named putCursorAtEndLnet/minecraft/client/util/SelectionManager;putCursorAtEnd()Vintermediary method_16204Lnet/minecraft/class_3728;method_16204()Vofficial fLglk;f()V
-
moveCursorToEnd
public void moveCursorToEnd(boolean shiftDown) - Mappings:
Namespace Name Mixin selector named moveCursorToEndLnet/minecraft/client/util/SelectionManager;moveCursorToEnd(Z)Vintermediary method_27558Lnet/minecraft/class_3728;method_27558(Z)Vofficial bLglk;b(Z)V
-
getSelectionStart
public int getSelectionStart()- Mappings:
Namespace Name Mixin selector named getSelectionStartLnet/minecraft/client/util/SelectionManager;getSelectionStart()Iintermediary method_16201Lnet/minecraft/class_3728;method_16201()Iofficial gLglk;g()I
-
moveCursorTo
public void moveCursorTo(int position) - Mappings:
Namespace Name Mixin selector named moveCursorToLnet/minecraft/client/util/SelectionManager;moveCursorTo(I)Vintermediary method_35730Lnet/minecraft/class_3728;method_35730(I)Vofficial eLglk;e(I)V
-
moveCursorTo
public void moveCursorTo(int position, boolean shiftDown) - Mappings:
Namespace Name Mixin selector named moveCursorToLnet/minecraft/client/util/SelectionManager;moveCursorTo(IZ)Vintermediary method_27560Lnet/minecraft/class_3728;method_27560(IZ)Vofficial cLglk;c(IZ)V
-
getSelectionEnd
public int getSelectionEnd()- Mappings:
Namespace Name Mixin selector named getSelectionEndLnet/minecraft/client/util/SelectionManager;getSelectionEnd()Iintermediary method_16203Lnet/minecraft/class_3728;method_16203()Iofficial hLglk;h()I
-
setSelectionEnd
public void setSelectionEnd(int pos) - Mappings:
Namespace Name Mixin selector named setSelectionEndLnet/minecraft/client/util/SelectionManager;setSelectionEnd(I)Vintermediary method_35731Lnet/minecraft/class_3728;method_35731(I)Vofficial fLglk;f(I)V
-
setSelection
public void setSelection(int start, int end) - Mappings:
Namespace Name Mixin selector named setSelectionLnet/minecraft/client/util/SelectionManager;setSelection(II)Vintermediary method_27548Lnet/minecraft/class_3728;method_27548(II)Vofficial aLglk;a(II)V
-
isSelecting
public boolean isSelecting()- Mappings:
Namespace Name Mixin selector named isSelectingLnet/minecraft/client/util/SelectionManager;isSelecting()Zintermediary method_27568Lnet/minecraft/class_3728;method_27568()Zofficial iLglk;i()Z
-