Class SelectionManager

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

@Environment(CLIENT)
public class SelectionManager
extends Object
  • Field Details

    • stringGetter

      private final Supplier<String> stringGetter
    • stringSetter

      private final Consumer<String> stringSetter
    • clipboardGetter

      private final Supplier<String> clipboardGetter
    • clipboardSetter

      private final Consumer<String> clipboardSetter
    • stringFilter

      private final Predicate<String> stringFilter
    • selectionStart

      private int selectionStart
    • selectionEnd

      private int selectionEnd
  • Constructor Details

  • Method Details

    • makeClipboardGetter

      public static Supplier<String> makeClipboardGetter​(MinecraftClient client)
    • getClipboard

      public static String getClipboard​(MinecraftClient client)
    • makeClipboardSetter

      public static Consumer<String> makeClipboardSetter​(MinecraftClient client)
    • setClipboard

      public static void setClipboard​(MinecraftClient client, String string)
    • insert

      public boolean insert​(char c)
    • handleSpecialKey

      public boolean handleSpecialKey​(int keyCode)
    • method_27567

      private int method_27567​(int int2)
    • insert

      private void insert​(String string, String insertion)
    • insert

      public void insert​(String string)
    • updateSelectionRange

      private void updateSelectionRange​(boolean shiftDown)
    • moveCursor

      public void moveCursor​(int offset, boolean shiftDown)
    • moveCursorPastWord

      public void moveCursorPastWord​(int offset, boolean shiftDown)
    • delete

      public void delete​(int cursorOffset)
    • cut

      public void cut()
    • paste

      public void paste()
    • copy

      public void copy()
    • selectAll

      public void selectAll()
    • getSelectedText

      private String getSelectedText​(String string)
    • deleteSelectedText

      private String deleteSelectedText​(String string)
    • method_27553

      private void method_27553​(boolean bool)
    • moveCaretToEnd

      public void moveCaretToEnd()
    • method_27558

      private void method_27558​(boolean bool)
    • getSelectionStart

      public int getSelectionStart()
    • method_27560

      public void method_27560​(int int2, boolean bool)
    • getSelectionEnd

      public int getSelectionEnd()
    • method_27548

      public void method_27548​(int int2, int int3)
    • method_27568

      public boolean method_27568()