Class SelectionManager

java.lang.Object
net.minecraft.client.util.SelectionManager

@Environment(CLIENT)
public class SelectionManager
extends Object
Mappings:
Namespace Name
official dtj
intermediary net/minecraft/class_3728
named net/minecraft/client/util/SelectionManager
  • Field Details

    • stringGetter

      private final Supplier<String> stringGetter
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;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

      private final Consumer<String> stringSetter
      Mappings:
      Namespace Name Mixin selector
      official b Ldtj;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

      private final Supplier<String> clipboardGetter
      Mappings:
      Namespace Name Mixin selector
      official c Ldtj;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

      private final Consumer<String> clipboardSetter
      Mappings:
      Namespace Name Mixin selector
      official d Ldtj;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

      private final Predicate<String> stringFilter
      Mappings:
      Namespace Name Mixin selector
      official e Ldtj;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 Ldtj;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 Ldtj;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> Ldtj;<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

      public static Supplier<String> makeClipboardGetter​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;a(Ldqk;)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

      public static String getClipboard​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtj;b(Ldqk;)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

      public static Consumer<String> makeClipboardSetter​(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official c Ldtj;c(Ldqk;)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

      public static void setClipboard​(MinecraftClient client, String clipboard)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;a(Ldqk;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 Ldtj;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 Ldtj;a(I)Z
      intermediary method_16202 Lnet/minecraft/class_3728;method_16202(I)Z
      named handleSpecialKey Lnet/minecraft/client/util/SelectionManager;handleSpecialKey(I)Z
    • method_27567

      private int method_27567​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official g Ldtj;g(I)I
      intermediary method_27567 Lnet/minecraft/class_3728;method_27567(I)I
      named method_27567 Lnet/minecraft/client/util/SelectionManager;method_27567(I)I
    • insert

      private void insert​(String string, String insertion)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;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

      public void insert​(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;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 a Ldtj;a(Z)V
      intermediary method_27562 Lnet/minecraft/class_3728;method_27562(Z)V
      named updateSelectionRange Lnet/minecraft/client/util/SelectionManager;updateSelectionRange(Z)V
    • moveCursor

      public void moveCursor​(int offset, boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;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, boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtj;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

      public void delete​(int cursorOffset)
      Mappings:
      Namespace Name Mixin selector
      official d Ldtj;d(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 Ldtj;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 Ldtj;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 Ldtj;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 Ldtj;d()V
      intermediary method_27563 Lnet/minecraft/class_3728;method_27563()V
      named selectAll Lnet/minecraft/client/util/SelectionManager;selectAll()V
    • getSelectedText

      private String getSelectedText​(String string)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtj;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

      private String deleteSelectedText​(String string)
      Mappings:
      Namespace Name Mixin selector
      official c Ldtj;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;
    • method_27553

      private void method_27553​(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtj;b(Z)V
      intermediary method_27553 Lnet/minecraft/class_3728;method_27553(Z)V
      named method_27553 Lnet/minecraft/client/util/SelectionManager;method_27553(Z)V
    • moveCaretToEnd

      public void moveCaretToEnd()
      Mappings:
      Namespace Name Mixin selector
      official f Ldtj;f()V
      intermediary method_16204 Lnet/minecraft/class_3728;method_16204()V
      named moveCaretToEnd Lnet/minecraft/client/util/SelectionManager;moveCaretToEnd()V
    • method_27558

      private void method_27558​(boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official c Ldtj;c(Z)V
      intermediary method_27558 Lnet/minecraft/class_3728;method_27558(Z)V
      named method_27558 Lnet/minecraft/client/util/SelectionManager;method_27558(Z)V
    • getSelectionStart

      public int getSelectionStart()
      Mappings:
      Namespace Name Mixin selector
      official g Ldtj;g()I
      intermediary method_16201 Lnet/minecraft/class_3728;method_16201()I
      named getSelectionStart Lnet/minecraft/client/util/SelectionManager;getSelectionStart()I
    • method_27560

      public void method_27560​(int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official c Ldtj;c(IZ)V
      intermediary method_27560 Lnet/minecraft/class_3728;method_27560(IZ)V
      named method_27560 Lnet/minecraft/client/util/SelectionManager;method_27560(IZ)V
    • getSelectionEnd

      public int getSelectionEnd()
      Mappings:
      Namespace Name Mixin selector
      official h Ldtj;h()I
      intermediary method_16203 Lnet/minecraft/class_3728;method_16203()I
      named getSelectionEnd Lnet/minecraft/client/util/SelectionManager;getSelectionEnd()I
    • method_27548

      public void method_27548​(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtj;a(II)V
      intermediary method_27548 Lnet/minecraft/class_3728;method_27548(II)V
      named method_27548 Lnet/minecraft/client/util/SelectionManager;method_27548(II)V
    • method_27568

      public boolean method_27568()
      Mappings:
      Namespace Name Mixin selector
      official i Ldtj;i()Z
      intermediary method_27568 Lnet/minecraft/class_3728;method_27568()Z
      named method_27568 Lnet/minecraft/client/util/SelectionManager;method_27568()Z