Class TextInputUtil

java.lang.Object
net.minecraft.client.gui.fonts.TextInputUtil

public class TextInputUtil extends Object
  • Field Details

    • getMessageFn

      private final Supplier<String> getMessageFn
    • setMessageFn

      private final Consumer<String> setMessageFn
    • getClipboardFn

      private final Supplier<String> getClipboardFn
    • setClipboardFn

      private final Consumer<String> setClipboardFn
    • stringValidator

      private final Predicate<String> stringValidator
    • cursorPos

      private int cursorPos
    • selectionPos

      private int selectionPos
  • Constructor Details

  • Method Details

    • createClipboardGetter

      public static Supplier<String> createClipboardGetter(Minecraft p_238570_0_)
    • getClipboardContents

      public static String getClipboardContents(Minecraft p_238576_0_)
    • createClipboardSetter

      public static Consumer<String> createClipboardSetter(Minecraft p_238582_0_)
    • setClipboardContents

      public static void setClipboardContents(Minecraft p_238571_0_, String p_238571_1_)
    • charTyped

      public boolean charTyped(char p_216894_1_)
    • keyPressed

      public boolean keyPressed(int p_216897_1_)
    • clampToMsgLength

      private int clampToMsgLength(int p_238589_1_)
    • insertText

      private void insertText(String p_238572_1_, String p_238572_2_)
    • insertText

      public void insertText(String p_216892_1_)
    • resetSelectionIfNeeded

      private void resetSelectionIfNeeded(boolean p_238573_1_)
    • moveByChars

      public void moveByChars(int p_238569_1_, boolean p_238569_2_)
    • moveByWords

      public void moveByWords(int p_238575_1_, boolean p_238575_2_)
    • removeCharsFromCursor

      public void removeCharsFromCursor(int p_238586_1_)
    • cut

      public void cut()
    • paste

      public void paste()
    • copy

      public void copy()
    • selectAll

      public void selectAll()
    • getSelected

      private String getSelected(String p_238578_1_)
    • deleteSelection

      private String deleteSelection(String p_238583_1_)
    • setCursorToStart

      private void setCursorToStart(boolean p_238579_1_)
    • setCursorToEnd

      public void setCursorToEnd()
    • setCursorToEnd

      private void setCursorToEnd(boolean p_238584_1_)
    • getCursorPos

      public int getCursorPos()
    • setCursorPos

      public void setCursorPos(int p_238581_1_, boolean p_238581_2_)
    • getSelectionPos

      public int getSelectionPos()
    • setSelectionRange

      public void setSelectionRange(int p_238568_1_, int p_238568_2_)
    • isSelecting

      public boolean isSelecting()