Class TextFieldHelper

java.lang.Object
net.minecraft.client.gui.font.TextFieldHelper

public class TextFieldHelper 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_95154_)
    • getClipboardContents

      public static String getClipboardContents(Minecraft p_95170_)
    • createClipboardSetter

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

      public static void setClipboardContents(Minecraft p_95156_, String p_95157_)
    • charTyped

      public boolean charTyped(char p_95144_)
    • keyPressed

      public boolean keyPressed(int p_95146_)
    • clampToMsgLength

      private int clampToMsgLength(int p_95196_)
    • insertText

      private void insertText(String p_95161_, String p_95162_)
    • insertText

      public void insertText(String p_95159_)
    • resetSelectionIfNeeded

      private void resetSelectionIfNeeded(boolean p_95164_)
    • moveBy

      public void moveBy(int p_232576_, boolean p_232577_, TextFieldHelper.CursorStep p_232578_)
    • moveByChars

      public void moveByChars(int p_169094_)
    • moveByChars

      public void moveByChars(int p_95151_, boolean p_95152_)
    • moveByWords

      public void moveByWords(int p_169096_)
    • moveByWords

      public void moveByWords(int p_95167_, boolean p_95168_)
    • removeFromCursor

      public void removeFromCursor(int p_232573_, TextFieldHelper.CursorStep p_232574_)
    • removeWordsFromCursor

      public void removeWordsFromCursor(int p_232580_)
    • removeCharsFromCursor

      public void removeCharsFromCursor(int p_95190_)
    • cut

      public void cut()
    • paste

      public void paste()
    • copy

      public void copy()
    • selectAll

      public void selectAll()
    • getSelected

      private String getSelected(String p_95175_)
    • deleteSelection

      private String deleteSelection(String p_95185_)
    • setCursorToStart

      public void setCursorToStart()
    • setCursorToStart

      public void setCursorToStart(boolean p_95177_)
    • setCursorToEnd

      public void setCursorToEnd()
    • setCursorToEnd

      public void setCursorToEnd(boolean p_95187_)
    • getCursorPos

      public int getCursorPos()
    • setCursorPos

      public void setCursorPos(int p_169099_)
    • setCursorPos

      public void setCursorPos(int p_95180_, boolean p_95181_)
    • getSelectionPos

      public int getSelectionPos()
    • setSelectionPos

      public void setSelectionPos(int p_169101_)
    • setSelectionRange

      public void setSelectionRange(int p_95148_, int p_95149_)
    • isSelecting

      public boolean isSelecting()