Package net.minecraft.client.util
Class SelectionManager
java.lang.Object
net.minecraft.client.util.SelectionManager
- Mappings:
Namespace Name official ebrintermediary net/minecraft/class_3728named net/minecraft/client/util/SelectionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intclampCursorPosition(int pos) voidcopy()voidcut()voiddelete(int cursorOffset) private StringdeleteSelectedText(String string) 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) voidmoveCursorPastWord(int offset) voidmoveCursorPastWord(int offset, boolean shiftDown) voidmoveCursorTo(int position) voidmoveCursorTo(int position, boolean shiftDown) private voidmoveCursorToEnd(boolean shiftDown) voidprivate voidmoveCursorToStart(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 official aLebr;a:Ljava/util/function/Supplier;intermediary field_24257Lnet/minecraft/class_3728;field_24257:Ljava/util/function/Supplier;named stringGetterLnet/minecraft/client/util/SelectionManager;stringGetter:Ljava/util/function/Supplier;
-
stringSetter
- Mappings:
Namespace Name Mixin selector official bLebr;b:Ljava/util/function/Consumer;intermediary field_24258Lnet/minecraft/class_3728;field_24258:Ljava/util/function/Consumer;named stringSetterLnet/minecraft/client/util/SelectionManager;stringSetter:Ljava/util/function/Consumer;
-
clipboardGetter
- Mappings:
Namespace Name Mixin selector official cLebr;c:Ljava/util/function/Supplier;intermediary field_16456Lnet/minecraft/class_3728;field_16456:Ljava/util/function/Supplier;named clipboardGetterLnet/minecraft/client/util/SelectionManager;clipboardGetter:Ljava/util/function/Supplier;
-
clipboardSetter
- Mappings:
Namespace Name Mixin selector official dLebr;d:Ljava/util/function/Consumer;intermediary field_16458Lnet/minecraft/class_3728;field_16458:Ljava/util/function/Consumer;named clipboardSetterLnet/minecraft/client/util/SelectionManager;clipboardSetter:Ljava/util/function/Consumer;
-
stringFilter
- Mappings:
Namespace Name Mixin selector official eLebr;e:Ljava/util/function/Predicate;intermediary field_24259Lnet/minecraft/class_3728;field_24259:Ljava/util/function/Predicate;named stringFilterLnet/minecraft/client/util/SelectionManager;stringFilter:Ljava/util/function/Predicate;
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector official fLebr;f:Iintermediary field_16453Lnet/minecraft/class_3728;field_16453:Inamed selectionStartLnet/minecraft/client/util/SelectionManager;selectionStart:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector official gLebr;g:Iintermediary field_16452Lnet/minecraft/class_3728;field_16452:Inamed selectionEndLnet/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>Lebr;<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;)Vnamed <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 aLebr;a(Ldyq;)Ljava/util/function/Supplier;intermediary method_27550Lnet/minecraft/class_3728;method_27550(Lnet/minecraft/class_310;)Ljava/util/function/Supplier;named makeClipboardGetterLnet/minecraft/client/util/SelectionManager;makeClipboardGetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Supplier;
-
getClipboard
- Mappings:
Namespace Name Mixin selector official bLebr;b(Ldyq;)Ljava/lang/String;intermediary method_27556Lnet/minecraft/class_3728;method_27556(Lnet/minecraft/class_310;)Ljava/lang/String;named getClipboardLnet/minecraft/client/util/SelectionManager;getClipboard(Lnet/minecraft/client/MinecraftClient;)Ljava/lang/String;
-
makeClipboardSetter
- Mappings:
Namespace Name Mixin selector official cLebr;c(Ldyq;)Ljava/util/function/Consumer;intermediary method_27561Lnet/minecraft/class_3728;method_27561(Lnet/minecraft/class_310;)Ljava/util/function/Consumer;named makeClipboardSetterLnet/minecraft/client/util/SelectionManager;makeClipboardSetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Consumer;
-
setClipboard
- Mappings:
Namespace Name Mixin selector official aLebr;a(Ldyq;Ljava/lang/String;)Vintermediary method_27551Lnet/minecraft/class_3728;method_27551(Lnet/minecraft/class_310;Ljava/lang/String;)Vnamed setClipboardLnet/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 aLebr;a(C)Zintermediary method_16199Lnet/minecraft/class_3728;method_16199(C)Znamed insertLnet/minecraft/client/util/SelectionManager;insert(C)Z
-
handleSpecialKey
public boolean handleSpecialKey(int keyCode) - Mappings:
Namespace Name Mixin selector official aLebr;a(I)Zintermediary method_16202Lnet/minecraft/class_3728;method_16202(I)Znamed handleSpecialKeyLnet/minecraft/client/util/SelectionManager;handleSpecialKey(I)Z
-
clampCursorPosition
private int clampCursorPosition(int pos) - Mappings:
Namespace Name Mixin selector official gLebr;g(I)Iintermediary method_27567Lnet/minecraft/class_3728;method_27567(I)Inamed clampCursorPositionLnet/minecraft/client/util/SelectionManager;clampCursorPosition(I)I
-
insert
- Mappings:
Namespace Name Mixin selector official aLebr;a(Ljava/lang/String;Ljava/lang/String;)Vintermediary method_27552Lnet/minecraft/class_3728;method_27552(Ljava/lang/String;Ljava/lang/String;)Vnamed insertLnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;Ljava/lang/String;)V
-
insert
- Mappings:
Namespace Name Mixin selector official aLebr;a(Ljava/lang/String;)Vintermediary method_16197Lnet/minecraft/class_3728;method_16197(Ljava/lang/String;)Vnamed insertLnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;)V
-
updateSelectionRange
private void updateSelectionRange(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official aLebr;a(Z)Vintermediary method_27562Lnet/minecraft/class_3728;method_27562(Z)Vnamed updateSelectionRangeLnet/minecraft/client/util/SelectionManager;updateSelectionRange(Z)V
-
moveCursor
public void moveCursor(int offset) - Mappings:
Namespace Name Mixin selector official bLebr;b(I)Vintermediary method_35727Lnet/minecraft/class_3728;method_35727(I)Vnamed moveCursorLnet/minecraft/client/util/SelectionManager;moveCursor(I)V
-
moveCursor
public void moveCursor(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official aLebr;a(IZ)Vintermediary method_27549Lnet/minecraft/class_3728;method_27549(IZ)Vnamed moveCursorLnet/minecraft/client/util/SelectionManager;moveCursor(IZ)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset) - Mappings:
Namespace Name Mixin selector official cLebr;c(I)Vintermediary method_35728Lnet/minecraft/class_3728;method_35728(I)Vnamed moveCursorPastWordLnet/minecraft/client/util/SelectionManager;moveCursorPastWord(I)V
-
moveCursorPastWord
public void moveCursorPastWord(int offset, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official bLebr;b(IZ)Vintermediary method_27555Lnet/minecraft/class_3728;method_27555(IZ)Vnamed moveCursorPastWordLnet/minecraft/client/util/SelectionManager;moveCursorPastWord(IZ)V
-
delete
public void delete(int cursorOffset) - Mappings:
Namespace Name Mixin selector official dLebr;d(I)Vintermediary method_27564Lnet/minecraft/class_3728;method_27564(I)Vnamed deleteLnet/minecraft/client/util/SelectionManager;delete(I)V
-
cut
public void cut()- Mappings:
Namespace Name Mixin selector official aLebr;a()Vintermediary method_27547Lnet/minecraft/class_3728;method_27547()Vnamed cutLnet/minecraft/client/util/SelectionManager;cut()V
-
paste
public void paste()- Mappings:
Namespace Name Mixin selector official bLebr;b()Vintermediary method_27554Lnet/minecraft/class_3728;method_27554()Vnamed pasteLnet/minecraft/client/util/SelectionManager;paste()V
-
copy
public void copy()- Mappings:
Namespace Name Mixin selector official cLebr;c()Vintermediary method_27559Lnet/minecraft/class_3728;method_27559()Vnamed copyLnet/minecraft/client/util/SelectionManager;copy()V
-
selectAll
public void selectAll()- Mappings:
Namespace Name Mixin selector official dLebr;d()Vintermediary method_27563Lnet/minecraft/class_3728;method_27563()Vnamed selectAllLnet/minecraft/client/util/SelectionManager;selectAll()V
-
getSelectedText
- Mappings:
Namespace Name Mixin selector official bLebr;b(Ljava/lang/String;)Ljava/lang/String;intermediary method_16200Lnet/minecraft/class_3728;method_16200(Ljava/lang/String;)Ljava/lang/String;named getSelectedTextLnet/minecraft/client/util/SelectionManager;getSelectedText(Ljava/lang/String;)Ljava/lang/String;
-
deleteSelectedText
- Mappings:
Namespace Name Mixin selector official cLebr;c(Ljava/lang/String;)Ljava/lang/String;intermediary method_16198Lnet/minecraft/class_3728;method_16198(Ljava/lang/String;)Ljava/lang/String;named deleteSelectedTextLnet/minecraft/client/util/SelectionManager;deleteSelectedText(Ljava/lang/String;)Ljava/lang/String;
-
moveCursorToStart
public void moveCursorToStart()- Mappings:
Namespace Name Mixin selector official eLebr;e()Vintermediary method_35729Lnet/minecraft/class_3728;method_35729()Vnamed moveCursorToStartLnet/minecraft/client/util/SelectionManager;moveCursorToStart()V
-
moveCursorToStart
private void moveCursorToStart(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official bLebr;b(Z)Vintermediary method_27553Lnet/minecraft/class_3728;method_27553(Z)Vnamed moveCursorToStartLnet/minecraft/client/util/SelectionManager;moveCursorToStart(Z)V
-
putCursorAtEnd
public void putCursorAtEnd()- Mappings:
Namespace Name Mixin selector official fLebr;f()Vintermediary method_16204Lnet/minecraft/class_3728;method_16204()Vnamed putCursorAtEndLnet/minecraft/client/util/SelectionManager;putCursorAtEnd()V
-
moveCursorToEnd
private void moveCursorToEnd(boolean shiftDown) - Mappings:
Namespace Name Mixin selector official cLebr;c(Z)Vintermediary method_27558Lnet/minecraft/class_3728;method_27558(Z)Vnamed moveCursorToEndLnet/minecraft/client/util/SelectionManager;moveCursorToEnd(Z)V
-
getSelectionStart
public int getSelectionStart()- Mappings:
Namespace Name Mixin selector official gLebr;g()Iintermediary method_16201Lnet/minecraft/class_3728;method_16201()Inamed getSelectionStartLnet/minecraft/client/util/SelectionManager;getSelectionStart()I
-
moveCursorTo
public void moveCursorTo(int position) - Mappings:
Namespace Name Mixin selector official eLebr;e(I)Vintermediary method_35730Lnet/minecraft/class_3728;method_35730(I)Vnamed moveCursorToLnet/minecraft/client/util/SelectionManager;moveCursorTo(I)V
-
moveCursorTo
public void moveCursorTo(int position, boolean shiftDown) - Mappings:
Namespace Name Mixin selector official cLebr;c(IZ)Vintermediary method_27560Lnet/minecraft/class_3728;method_27560(IZ)Vnamed moveCursorToLnet/minecraft/client/util/SelectionManager;moveCursorTo(IZ)V
-
getSelectionEnd
public int getSelectionEnd()- Mappings:
Namespace Name Mixin selector official hLebr;h()Iintermediary method_16203Lnet/minecraft/class_3728;method_16203()Inamed getSelectionEndLnet/minecraft/client/util/SelectionManager;getSelectionEnd()I
-
setSelectionEnd
public void setSelectionEnd(int pos) - Mappings:
Namespace Name Mixin selector official fLebr;f(I)Vintermediary method_35731Lnet/minecraft/class_3728;method_35731(I)Vnamed setSelectionEndLnet/minecraft/client/util/SelectionManager;setSelectionEnd(I)V
-
setSelection
public void setSelection(int start, int end) - Mappings:
Namespace Name Mixin selector official aLebr;a(II)Vintermediary method_27548Lnet/minecraft/class_3728;method_27548(II)Vnamed setSelectionLnet/minecraft/client/util/SelectionManager;setSelection(II)V
-
isSelecting
public boolean isSelecting()- Mappings:
Namespace Name Mixin selector official iLebr;i()Zintermediary method_27568Lnet/minecraft/class_3728;method_27568()Znamed isSelectingLnet/minecraft/client/util/SelectionManager;isSelecting()Z
-