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 frb
-
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(int keyCode) booleaninsert(char c) voidprivate voidbooleanmakeClipboardGetter(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 aLfrb;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 bLfrb;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 cLfrb;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 dLfrb;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 eLfrb;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 fLfrb;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 gLfrb;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>Lfrb;<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 aLfrb;a(Lfmg;)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 bLfrb;b(Lfmg;)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 cLfrb;c(Lfmg;)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 aLfrb;a(Lfmg;Ljava/lang/String;)V
-
insert
public boolean insert(char c) - Mappings:
Namespace Name Mixin selector named insertLnet/minecraft/client/util/SelectionManager;insert(C)Zintermediary method_16199Lnet/minecraft/class_3728;method_16199(C)Zofficial aLfrb;a(C)Z
-
handleSpecialKey
public boolean handleSpecialKey(int keyCode) - Mappings:
Namespace Name Mixin selector named handleSpecialKeyLnet/minecraft/client/util/SelectionManager;handleSpecialKey(I)Zintermediary method_16202Lnet/minecraft/class_3728;method_16202(I)Zofficial aLfrb;a(I)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 hLfrb;h(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 aLfrb;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 aLfrb;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 cLfrb;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 aLfrb;a(IZLfrb$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 bLfrb;b(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 aLfrb;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 cLfrb;c(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 bLfrb;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 aLfrb;a(ILfrb$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 dLfrb;d(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 eLfrb;e(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 aLfrb;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 bLfrb;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 cLfrb;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 dLfrb;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 bLfrb;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 cLfrb;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 eLfrb;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 aLfrb;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 fLfrb;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 bLfrb;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 gLfrb;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 fLfrb;f(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 cLfrb;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 hLfrb;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 gLfrb;g(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 aLfrb;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 iLfrb;i()Z
-