Class SelectionManager

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

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

    • stringGetter Link icon

      private final Supplier<String> stringGetter
      Mappings:
      Namespace Name Mixin selector
      named stringGetter Lnet/minecraft/client/util/SelectionManager;stringGetter:Ljava/util/function/Supplier;
      intermediary field_24257 Lnet/minecraft/class_3728;field_24257:Ljava/util/function/Supplier;
      official a Lfrp;a:Ljava/util/function/Supplier;
    • stringSetter Link icon

      private final Consumer<String> stringSetter
      Mappings:
      Namespace Name Mixin selector
      named stringSetter Lnet/minecraft/client/util/SelectionManager;stringSetter:Ljava/util/function/Consumer;
      intermediary field_24258 Lnet/minecraft/class_3728;field_24258:Ljava/util/function/Consumer;
      official b Lfrp;b:Ljava/util/function/Consumer;
    • clipboardGetter Link icon

      private final Supplier<String> clipboardGetter
      Mappings:
      Namespace Name Mixin selector
      named clipboardGetter Lnet/minecraft/client/util/SelectionManager;clipboardGetter:Ljava/util/function/Supplier;
      intermediary field_16456 Lnet/minecraft/class_3728;field_16456:Ljava/util/function/Supplier;
      official c Lfrp;c:Ljava/util/function/Supplier;
    • clipboardSetter Link icon

      private final Consumer<String> clipboardSetter
      Mappings:
      Namespace Name Mixin selector
      named clipboardSetter Lnet/minecraft/client/util/SelectionManager;clipboardSetter:Ljava/util/function/Consumer;
      intermediary field_16458 Lnet/minecraft/class_3728;field_16458:Ljava/util/function/Consumer;
      official d Lfrp;d:Ljava/util/function/Consumer;
    • stringFilter Link icon

      private final Predicate<String> stringFilter
      Mappings:
      Namespace Name Mixin selector
      named stringFilter Lnet/minecraft/client/util/SelectionManager;stringFilter:Ljava/util/function/Predicate;
      intermediary field_24259 Lnet/minecraft/class_3728;field_24259:Ljava/util/function/Predicate;
      official e Lfrp;e:Ljava/util/function/Predicate;
    • selectionStart Link icon

      private int selectionStart
      Mappings:
      Namespace Name Mixin selector
      named selectionStart Lnet/minecraft/client/util/SelectionManager;selectionStart:I
      intermediary field_16453 Lnet/minecraft/class_3728;field_16453:I
      official f Lfrp;f:I
    • selectionEnd Link icon

      private int selectionEnd
      Mappings:
      Namespace Name Mixin selector
      named selectionEnd Lnet/minecraft/client/util/SelectionManager;selectionEnd:I
      intermediary field_16452 Lnet/minecraft/class_3728;field_16452:I
      official g Lfrp;g:I
  • Constructor Details Link icon

    • SelectionManager Link icon

      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;)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
      official <init> Lfrp;<init>(Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Supplier;Ljava/util/function/Consumer;Ljava/util/function/Predicate;)V
  • Method Details Link icon

    • makeClipboardGetter Link icon

      public static Supplier<String> makeClipboardGetter(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      named makeClipboardGetter Lnet/minecraft/client/util/SelectionManager;makeClipboardGetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Supplier;
      intermediary method_27550 Lnet/minecraft/class_3728;method_27550(Lnet/minecraft/class_310;)Ljava/util/function/Supplier;
      official a Lfrp;a(Lflk;)Ljava/util/function/Supplier;
    • getClipboard Link icon

      public static String getClipboard(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      named getClipboard Lnet/minecraft/client/util/SelectionManager;getClipboard(Lnet/minecraft/client/MinecraftClient;)Ljava/lang/String;
      intermediary method_27556 Lnet/minecraft/class_3728;method_27556(Lnet/minecraft/class_310;)Ljava/lang/String;
      official b Lfrp;b(Lflk;)Ljava/lang/String;
    • makeClipboardSetter Link icon

      public static Consumer<String> makeClipboardSetter(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      named makeClipboardSetter Lnet/minecraft/client/util/SelectionManager;makeClipboardSetter(Lnet/minecraft/client/MinecraftClient;)Ljava/util/function/Consumer;
      intermediary method_27561 Lnet/minecraft/class_3728;method_27561(Lnet/minecraft/class_310;)Ljava/util/function/Consumer;
      official c Lfrp;c(Lflk;)Ljava/util/function/Consumer;
    • setClipboard Link icon

      public static void setClipboard(MinecraftClient client, String clipboard)
      Mappings:
      Namespace Name Mixin selector
      named setClipboard Lnet/minecraft/client/util/SelectionManager;setClipboard(Lnet/minecraft/client/MinecraftClient;Ljava/lang/String;)V
      intermediary method_27551 Lnet/minecraft/class_3728;method_27551(Lnet/minecraft/class_310;Ljava/lang/String;)V
      official a Lfrp;a(Lflk;Ljava/lang/String;)V
    • insert Link icon

      public boolean insert(char c)
      Mappings:
      Namespace Name Mixin selector
      named insert Lnet/minecraft/client/util/SelectionManager;insert(C)Z
      intermediary method_16199 Lnet/minecraft/class_3728;method_16199(C)Z
      official a Lfrp;a(C)Z
    • handleSpecialKey Link icon

      public boolean handleSpecialKey(int keyCode)
      Mappings:
      Namespace Name Mixin selector
      named handleSpecialKey Lnet/minecraft/client/util/SelectionManager;handleSpecialKey(I)Z
      intermediary method_16202 Lnet/minecraft/class_3728;method_16202(I)Z
      official a Lfrp;a(I)Z
    • clampCursorPosition Link icon

      private int clampCursorPosition(int pos)
      Mappings:
      Namespace Name Mixin selector
      named clampCursorPosition Lnet/minecraft/client/util/SelectionManager;clampCursorPosition(I)I
      intermediary method_27567 Lnet/minecraft/class_3728;method_27567(I)I
      official h Lfrp;h(I)I
    • insert Link icon

      private void insert(String string, String insertion)
      Mappings:
      Namespace Name Mixin selector
      named insert Lnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;Ljava/lang/String;)V
      intermediary method_27552 Lnet/minecraft/class_3728;method_27552(Ljava/lang/String;Ljava/lang/String;)V
      official a Lfrp;a(Ljava/lang/String;Ljava/lang/String;)V
    • insert Link icon

      public void insert(String string)
      Mappings:
      Namespace Name Mixin selector
      named insert Lnet/minecraft/client/util/SelectionManager;insert(Ljava/lang/String;)V
      intermediary method_16197 Lnet/minecraft/class_3728;method_16197(Ljava/lang/String;)V
      official a Lfrp;a(Ljava/lang/String;)V
    • updateSelectionRange Link icon

      private void updateSelectionRange(boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named updateSelectionRange Lnet/minecraft/client/util/SelectionManager;updateSelectionRange(Z)V
      intermediary method_27562 Lnet/minecraft/class_3728;method_27562(Z)V
      official c Lfrp;c(Z)V
    • moveCursor Link icon

      public void moveCursor(int offset, boolean shiftDown, SelectionManager.SelectionType selectionType)
      Mappings:
      Namespace Name Mixin selector
      named moveCursor Lnet/minecraft/client/util/SelectionManager;moveCursor(IZLnet/minecraft/client/util/SelectionManager$SelectionType;)V
      intermediary method_42575 Lnet/minecraft/class_3728;method_42575(IZLnet/minecraft/class_3728$class_7279;)V
      official a Lfrp;a(IZLfrp$a;)V
    • moveCursor Link icon

      public void moveCursor(int offset)
      Mappings:
      Namespace Name Mixin selector
      named moveCursor Lnet/minecraft/client/util/SelectionManager;moveCursor(I)V
      intermediary method_35727 Lnet/minecraft/class_3728;method_35727(I)V
      official b Lfrp;b(I)V
    • moveCursor Link icon

      public void moveCursor(int offset, boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named moveCursor Lnet/minecraft/client/util/SelectionManager;moveCursor(IZ)V
      intermediary method_27549 Lnet/minecraft/class_3728;method_27549(IZ)V
      official a Lfrp;a(IZ)V
    • moveCursorPastWord Link icon

      public void moveCursorPastWord(int offset)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorPastWord Lnet/minecraft/client/util/SelectionManager;moveCursorPastWord(I)V
      intermediary method_35728 Lnet/minecraft/class_3728;method_35728(I)V
      official c Lfrp;c(I)V
    • moveCursorPastWord Link icon

      public void moveCursorPastWord(int offset, boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorPastWord Lnet/minecraft/client/util/SelectionManager;moveCursorPastWord(IZ)V
      intermediary method_27555 Lnet/minecraft/class_3728;method_27555(IZ)V
      official b Lfrp;b(IZ)V
    • delete Link icon

      public void delete(int offset, SelectionManager.SelectionType selectionType)
      Mappings:
      Namespace Name Mixin selector
      named delete Lnet/minecraft/client/util/SelectionManager;delete(ILnet/minecraft/client/util/SelectionManager$SelectionType;)V
      intermediary method_42574 Lnet/minecraft/class_3728;method_42574(ILnet/minecraft/class_3728$class_7279;)V
      official a Lfrp;a(ILfrp$a;)V
    • deleteWord Link icon

      public void deleteWord(int offset)
      Mappings:
      Namespace Name Mixin selector
      named deleteWord Lnet/minecraft/client/util/SelectionManager;deleteWord(I)V
      intermediary method_42576 Lnet/minecraft/class_3728;method_42576(I)V
      official d Lfrp;d(I)V
    • delete Link icon

      public void delete(int offset)
      Mappings:
      Namespace Name Mixin selector
      named delete Lnet/minecraft/client/util/SelectionManager;delete(I)V
      intermediary method_27564 Lnet/minecraft/class_3728;method_27564(I)V
      official e Lfrp;e(I)V
    • cut Link icon

      public void cut()
      Mappings:
      Namespace Name Mixin selector
      named cut Lnet/minecraft/client/util/SelectionManager;cut()V
      intermediary method_27547 Lnet/minecraft/class_3728;method_27547()V
      official a Lfrp;a()V
    • paste Link icon

      public void paste()
      Mappings:
      Namespace Name Mixin selector
      named paste Lnet/minecraft/client/util/SelectionManager;paste()V
      intermediary method_27554 Lnet/minecraft/class_3728;method_27554()V
      official b Lfrp;b()V
    • copy Link icon

      public void copy()
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/client/util/SelectionManager;copy()V
      intermediary method_27559 Lnet/minecraft/class_3728;method_27559()V
      official c Lfrp;c()V
    • selectAll Link icon

      public void selectAll()
      Mappings:
      Namespace Name Mixin selector
      named selectAll Lnet/minecraft/client/util/SelectionManager;selectAll()V
      intermediary method_27563 Lnet/minecraft/class_3728;method_27563()V
      official d Lfrp;d()V
    • getSelectedText Link icon

      private String getSelectedText(String string)
      Mappings:
      Namespace Name Mixin selector
      named getSelectedText Lnet/minecraft/client/util/SelectionManager;getSelectedText(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_16200 Lnet/minecraft/class_3728;method_16200(Ljava/lang/String;)Ljava/lang/String;
      official b Lfrp;b(Ljava/lang/String;)Ljava/lang/String;
    • deleteSelectedText Link icon

      private String deleteSelectedText(String string)
      Mappings:
      Namespace Name Mixin selector
      named deleteSelectedText Lnet/minecraft/client/util/SelectionManager;deleteSelectedText(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_16198 Lnet/minecraft/class_3728;method_16198(Ljava/lang/String;)Ljava/lang/String;
      official c Lfrp;c(Ljava/lang/String;)Ljava/lang/String;
    • moveCursorToStart Link icon

      public void moveCursorToStart()
      Mappings:
      Namespace Name Mixin selector
      named moveCursorToStart Lnet/minecraft/client/util/SelectionManager;moveCursorToStart()V
      intermediary method_35729 Lnet/minecraft/class_3728;method_35729()V
      official e Lfrp;e()V
    • moveCursorToStart Link icon

      public void moveCursorToStart(boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorToStart Lnet/minecraft/client/util/SelectionManager;moveCursorToStart(Z)V
      intermediary method_27553 Lnet/minecraft/class_3728;method_27553(Z)V
      official a Lfrp;a(Z)V
    • putCursorAtEnd Link icon

      public void putCursorAtEnd()
      Mappings:
      Namespace Name Mixin selector
      named putCursorAtEnd Lnet/minecraft/client/util/SelectionManager;putCursorAtEnd()V
      intermediary method_16204 Lnet/minecraft/class_3728;method_16204()V
      official f Lfrp;f()V
    • moveCursorToEnd Link icon

      public void moveCursorToEnd(boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorToEnd Lnet/minecraft/client/util/SelectionManager;moveCursorToEnd(Z)V
      intermediary method_27558 Lnet/minecraft/class_3728;method_27558(Z)V
      official b Lfrp;b(Z)V
    • getSelectionStart Link icon

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

      public void moveCursorTo(int position)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorTo Lnet/minecraft/client/util/SelectionManager;moveCursorTo(I)V
      intermediary method_35730 Lnet/minecraft/class_3728;method_35730(I)V
      official f Lfrp;f(I)V
    • moveCursorTo Link icon

      public void moveCursorTo(int position, boolean shiftDown)
      Mappings:
      Namespace Name Mixin selector
      named moveCursorTo Lnet/minecraft/client/util/SelectionManager;moveCursorTo(IZ)V
      intermediary method_27560 Lnet/minecraft/class_3728;method_27560(IZ)V
      official c Lfrp;c(IZ)V
    • getSelectionEnd Link icon

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

      public void setSelectionEnd(int pos)
      Mappings:
      Namespace Name Mixin selector
      named setSelectionEnd Lnet/minecraft/client/util/SelectionManager;setSelectionEnd(I)V
      intermediary method_35731 Lnet/minecraft/class_3728;method_35731(I)V
      official g Lfrp;g(I)V
    • setSelection Link icon

      public void setSelection(int start, int end)
      Mappings:
      Namespace Name Mixin selector
      named setSelection Lnet/minecraft/client/util/SelectionManager;setSelection(II)V
      intermediary method_27548 Lnet/minecraft/class_3728;method_27548(II)V
      official a Lfrp;a(II)V
    • isSelecting Link icon

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