Class TextFieldWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.TextFieldWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

@Environment(CLIENT) public class TextFieldWidget extends ClickableWidget implements Drawable
Mappings:
Namespace Name
official esz
intermediary net/minecraft/class_342
named net/minecraft/client/gui/widget/TextFieldWidget
  • Field Details

    • TEXTURES

      private static final ButtonTextures TEXTURES
      Mappings:
      Namespace Name Mixin selector
      official d Lesz;d:Leuc;
      intermediary field_45914 Lnet/minecraft/class_342;field_45914:Lnet/minecraft/class_8666;
      named TEXTURES Lnet/minecraft/client/gui/widget/TextFieldWidget;TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
    • field_32194

      public static final int field_32194
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a:I
      intermediary field_32194 Lnet/minecraft/class_342;field_32194:I
      named field_32194 Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32194:I
    • field_32195

      public static final int field_32195
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b:I
      intermediary field_32195 Lnet/minecraft/class_342;field_32195:I
      named field_32195 Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32195:I
    • field_32197

      private static final int field_32197
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lesz;e:I
      intermediary field_32197 Lnet/minecraft/class_342;field_32197:I
      named field_32197 Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32197:I
    • VERTICAL_CURSOR_COLOR

      private static final int VERTICAL_CURSOR_COLOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lesz;l:I
      intermediary field_32198 Lnet/minecraft/class_342;field_32198:I
      named VERTICAL_CURSOR_COLOR Lnet/minecraft/client/gui/widget/TextFieldWidget;VERTICAL_CURSOR_COLOR:I
    • HORIZONTAL_CURSOR

      private static final String HORIZONTAL_CURSOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lesz;m:Ljava/lang/String;
      intermediary field_32199 Lnet/minecraft/class_342;field_32199:Ljava/lang/String;
      named HORIZONTAL_CURSOR Lnet/minecraft/client/gui/widget/TextFieldWidget;HORIZONTAL_CURSOR:Ljava/lang/String;
    • DEFAULT_EDITABLE_COLOR

      public static final int DEFAULT_EDITABLE_COLOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lesz;c:I
      intermediary field_32196 Lnet/minecraft/class_342;field_32196:I
      named DEFAULT_EDITABLE_COLOR Lnet/minecraft/client/gui/widget/TextFieldWidget;DEFAULT_EDITABLE_COLOR:I
    • field_45354

      private static final int field_45354
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lesz;n:I
      intermediary field_45354 Lnet/minecraft/class_342;field_45354:I
      named field_45354 Lnet/minecraft/client/gui/widget/TextFieldWidget;field_45354:I
    • textRenderer

      private final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      official o Lesz;o:Lesd;
      intermediary field_2105 Lnet/minecraft/class_342;field_2105:Lnet/minecraft/class_327;
      named textRenderer Lnet/minecraft/client/gui/widget/TextFieldWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
    • text

      private String text
      Mappings:
      Namespace Name Mixin selector
      official p Lesz;p:Ljava/lang/String;
      intermediary field_2092 Lnet/minecraft/class_342;field_2092:Ljava/lang/String;
      named text Lnet/minecraft/client/gui/widget/TextFieldWidget;text:Ljava/lang/String;
    • maxLength

      private int maxLength
      Mappings:
      Namespace Name Mixin selector
      official q Lesz;q:I
      intermediary field_2108 Lnet/minecraft/class_342;field_2108:I
      named maxLength Lnet/minecraft/client/gui/widget/TextFieldWidget;maxLength:I
    • drawsBackground

      private boolean drawsBackground
      Mappings:
      Namespace Name Mixin selector
      official s Lesz;s:Z
      intermediary field_2095 Lnet/minecraft/class_342;field_2095:Z
      named drawsBackground Lnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground:Z
    • focusUnlocked

      private boolean focusUnlocked
      Mappings:
      Namespace Name Mixin selector
      official t Lesz;t:Z
      intermediary field_2096 Lnet/minecraft/class_342;field_2096:Z
      named focusUnlocked Lnet/minecraft/client/gui/widget/TextFieldWidget;focusUnlocked:Z
    • editable

      private boolean editable
      Mappings:
      Namespace Name Mixin selector
      official u Lesz;u:Z
      intermediary field_2094 Lnet/minecraft/class_342;field_2094:Z
      named editable Lnet/minecraft/client/gui/widget/TextFieldWidget;editable:Z
    • firstCharacterIndex

      private int firstCharacterIndex
      The index of the leftmost character that is rendered on a screen.
      Mappings:
      Namespace Name Mixin selector
      official v Lesz;v:I
      intermediary field_2103 Lnet/minecraft/class_342;field_2103:I
      named firstCharacterIndex Lnet/minecraft/client/gui/widget/TextFieldWidget;firstCharacterIndex:I
    • selectionStart

      private int selectionStart
      Mappings:
      Namespace Name Mixin selector
      official w Lesz;w:I
      intermediary field_2102 Lnet/minecraft/class_342;field_2102:I
      named selectionStart Lnet/minecraft/client/gui/widget/TextFieldWidget;selectionStart:I
    • selectionEnd

      private int selectionEnd
      Mappings:
      Namespace Name Mixin selector
      official x Lesz;x:I
      intermediary field_2101 Lnet/minecraft/class_342;field_2101:I
      named selectionEnd Lnet/minecraft/client/gui/widget/TextFieldWidget;selectionEnd:I
    • editableColor

      private int editableColor
      Mappings:
      Namespace Name Mixin selector
      official y Lesz;y:I
      intermediary field_2100 Lnet/minecraft/class_342;field_2100:I
      named editableColor Lnet/minecraft/client/gui/widget/TextFieldWidget;editableColor:I
    • uneditableColor

      private int uneditableColor
      Mappings:
      Namespace Name Mixin selector
      official z Lesz;z:I
      intermediary field_2098 Lnet/minecraft/class_342;field_2098:I
      named uneditableColor Lnet/minecraft/client/gui/widget/TextFieldWidget;uneditableColor:I
    • suggestion

      @Nullable private @Nullable String suggestion
      Mappings:
      Namespace Name Mixin selector
      official A Lesz;A:Ljava/lang/String;
      intermediary field_2106 Lnet/minecraft/class_342;field_2106:Ljava/lang/String;
      named suggestion Lnet/minecraft/client/gui/widget/TextFieldWidget;suggestion:Ljava/lang/String;
    • changedListener

      @Nullable private @Nullable Consumer<String> changedListener
      Mappings:
      Namespace Name Mixin selector
      official B Lesz;B:Ljava/util/function/Consumer;
      intermediary field_2088 Lnet/minecraft/class_342;field_2088:Ljava/util/function/Consumer;
      named changedListener Lnet/minecraft/client/gui/widget/TextFieldWidget;changedListener:Ljava/util/function/Consumer;
    • textPredicate

      private Predicate<String> textPredicate
      Mappings:
      Namespace Name Mixin selector
      official C Lesz;C:Ljava/util/function/Predicate;
      intermediary field_2104 Lnet/minecraft/class_342;field_2104:Ljava/util/function/Predicate;
      named textPredicate Lnet/minecraft/client/gui/widget/TextFieldWidget;textPredicate:Ljava/util/function/Predicate;
    • renderTextProvider

      private BiFunction<String,Integer,OrderedText> renderTextProvider
      Mappings:
      Namespace Name Mixin selector
      official D Lesz;D:Ljava/util/function/BiFunction;
      intermediary field_2099 Lnet/minecraft/class_342;field_2099:Ljava/util/function/BiFunction;
      named renderTextProvider Lnet/minecraft/client/gui/widget/TextFieldWidget;renderTextProvider:Ljava/util/function/BiFunction;
    • placeholder

      @Nullable private @Nullable Text placeholder
      Mappings:
      Namespace Name Mixin selector
      official E Lesz;E:Ltl;
      intermediary field_41100 Lnet/minecraft/class_342;field_41100:Lnet/minecraft/class_2561;
      named placeholder Lnet/minecraft/client/gui/widget/TextFieldWidget;placeholder:Lnet/minecraft/text/Text;
    • lastSwitchFocusTime

      private long lastSwitchFocusTime
      Mappings:
      Namespace Name Mixin selector
      official F Lesz;F:J
      intermediary field_45352 Lnet/minecraft/class_342;field_45352:J
      named lastSwitchFocusTime Lnet/minecraft/client/gui/widget/TextFieldWidget;lastSwitchFocusTime:J
  • Constructor Details

    • TextFieldWidget

      public TextFieldWidget(TextRenderer textRenderer, int width, int height, Text text)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesz;<init>(Lesd;IILtl;)V
      intermediary <init> Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IILnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/widget/TextFieldWidget;<init>(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/text/Text;)V
    • TextFieldWidget

      public TextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, Text text)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesz;<init>(Lesd;IIIILtl;)V
      intermediary <init> Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/widget/TextFieldWidget;<init>(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/text/Text;)V
    • TextFieldWidget

      public TextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, @Nullable @Nullable TextFieldWidget copyFrom, Text text)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesz;<init>(Lesd;IIIILesz;Ltl;)V
      intermediary <init> Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_342;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/widget/TextFieldWidget;<init>(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/widget/TextFieldWidget;Lnet/minecraft/text/Text;)V
  • Method Details

    • setChangedListener

      public void setChangedListener(Consumer<String> changedListener)
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b(Ljava/util/function/Consumer;)V
      intermediary method_1863 Lnet/minecraft/class_342;method_1863(Ljava/util/function/Consumer;)V
      named setChangedListener Lnet/minecraft/client/gui/widget/TextFieldWidget;setChangedListener(Ljava/util/function/Consumer;)V
    • setRenderTextProvider

      public void setRenderTextProvider(BiFunction<String,Integer,OrderedText> renderTextProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(Ljava/util/function/BiFunction;)V
      intermediary method_1854 Lnet/minecraft/class_342;method_1854(Ljava/util/function/BiFunction;)V
      named setRenderTextProvider Lnet/minecraft/client/gui/widget/TextFieldWidget;setRenderTextProvider(Ljava/util/function/BiFunction;)V
    • getNarrationMessage

      protected MutableText getNarrationMessage()
      Overrides:
      getNarrationMessage in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official aE_ Leso;aE_()Lty;
      intermediary method_25360 Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
      named getNarrationMessage Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
    • setText

      public void setText(String text)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(Ljava/lang/String;)V
      intermediary method_1852 Lnet/minecraft/class_342;method_1852(Ljava/lang/String;)V
      named setText Lnet/minecraft/client/gui/widget/TextFieldWidget;setText(Ljava/lang/String;)V
    • getText

      public String getText()
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a()Ljava/lang/String;
      intermediary method_1882 Lnet/minecraft/class_342;method_1882()Ljava/lang/String;
      named getText Lnet/minecraft/client/gui/widget/TextFieldWidget;getText()Ljava/lang/String;
    • getSelectedText

      public String getSelectedText()
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b()Ljava/lang/String;
      intermediary method_1866 Lnet/minecraft/class_342;method_1866()Ljava/lang/String;
      named getSelectedText Lnet/minecraft/client/gui/widget/TextFieldWidget;getSelectedText()Ljava/lang/String;
    • setTextPredicate

      public void setTextPredicate(Predicate<String> textPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(Ljava/util/function/Predicate;)V
      intermediary method_1890 Lnet/minecraft/class_342;method_1890(Ljava/util/function/Predicate;)V
      named setTextPredicate Lnet/minecraft/client/gui/widget/TextFieldWidget;setTextPredicate(Ljava/util/function/Predicate;)V
    • write

      public void write(String text)
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b(Ljava/lang/String;)V
      intermediary method_1867 Lnet/minecraft/class_342;method_1867(Ljava/lang/String;)V
      named write Lnet/minecraft/client/gui/widget/TextFieldWidget;write(Ljava/lang/String;)V
    • onChanged

      private void onChanged(String newText)
      Mappings:
      Namespace Name Mixin selector
      official d Lesz;d(Ljava/lang/String;)V
      intermediary method_1874 Lnet/minecraft/class_342;method_1874(Ljava/lang/String;)V
      named onChanged Lnet/minecraft/client/gui/widget/TextFieldWidget;onChanged(Ljava/lang/String;)V
    • erase

      private void erase(int offset)
      Mappings:
      Namespace Name Mixin selector
      official q Lesz;q(I)V
      intermediary method_16873 Lnet/minecraft/class_342;method_16873(I)V
      named erase Lnet/minecraft/client/gui/widget/TextFieldWidget;erase(I)V
    • eraseWords

      public void eraseWords(int wordOffset)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(I)V
      intermediary method_1877 Lnet/minecraft/class_342;method_1877(I)V
      named eraseWords Lnet/minecraft/client/gui/widget/TextFieldWidget;eraseWords(I)V
    • eraseCharacters

      public void eraseCharacters(int characterOffset)
      Mappings:
      Namespace Name Mixin selector
      official i Lesz;i(I)V
      intermediary method_1878 Lnet/minecraft/class_342;method_1878(I)V
      named eraseCharacters Lnet/minecraft/client/gui/widget/TextFieldWidget;eraseCharacters(I)V
    • getWordSkipPosition

      public int getWordSkipPosition(int wordOffset)
      Mappings:
      Namespace Name Mixin selector
      official j Lesz;j(I)I
      intermediary method_1853 Lnet/minecraft/class_342;method_1853(I)I
      named getWordSkipPosition Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(I)I
    • getWordSkipPosition

      private int getWordSkipPosition(int wordOffset, int cursorPosition)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(II)I
      intermediary method_1869 Lnet/minecraft/class_342;method_1869(II)I
      named getWordSkipPosition Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(II)I
    • getWordSkipPosition

      private int getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(IIZ)I
      intermediary method_1864 Lnet/minecraft/class_342;method_1864(IIZ)I
      named getWordSkipPosition Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(IIZ)I
    • moveCursor

      public void moveCursor(int offset, boolean shiftKeyPressed)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(IZ)V
      intermediary method_1855 Lnet/minecraft/class_342;method_1855(IZ)V
      named moveCursor Lnet/minecraft/client/gui/widget/TextFieldWidget;moveCursor(IZ)V
    • getCursorPosWithOffset

      private int getCursorPosWithOffset(int offset)
      Mappings:
      Namespace Name Mixin selector
      official r Lesz;r(I)I
      intermediary method_27537 Lnet/minecraft/class_342;method_27537(I)I
      named getCursorPosWithOffset Lnet/minecraft/client/gui/widget/TextFieldWidget;getCursorPosWithOffset(I)I
    • setCursor

      public void setCursor(int cursor, boolean shiftKeyPressed)
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b(IZ)V
      intermediary method_1883 Lnet/minecraft/class_342;method_1883(IZ)V
      named setCursor Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursor(IZ)V
    • setSelectionStart

      public void setSelectionStart(int cursor)
      Mappings:
      Namespace Name Mixin selector
      official k Lesz;k(I)V
      intermediary method_1875 Lnet/minecraft/class_342;method_1875(I)V
      named setSelectionStart Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionStart(I)V
    • setCursorToStart

      public void setCursorToStart(boolean shiftKeyPressed)
      Mappings:
      Namespace Name Mixin selector
      official b Lesz;b(Z)V
      intermediary method_1870 Lnet/minecraft/class_342;method_1870(Z)V
      named setCursorToStart Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToStart(Z)V
    • setCursorToEnd

      public void setCursorToEnd(boolean shiftKeyPressed)
      Mappings:
      Namespace Name Mixin selector
      official c Lesz;c(Z)V
      intermediary method_1872 Lnet/minecraft/class_342;method_1872(Z)V
      named setCursorToEnd Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToEnd(Z)V
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • isActive

      public boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      official e Lesz;e()Z
      intermediary method_20315 Lnet/minecraft/class_342;method_20315()Z
      named isActive Lnet/minecraft/client/gui/widget/TextFieldWidget;isActive()Z
    • charTyped

      public boolean charTyped(char chr, int modifiers)
      Callback for when a character input has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      charTyped in interface Element
      Parameters:
      chr - the captured character
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
    • onClick

      public void onClick(double mouseX, double mouseY)
      Overrides:
      onClick in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leso;a(DD)V
      intermediary method_25348 Lnet/minecraft/class_339;method_25348(DD)V
      named onClick Lnet/minecraft/client/gui/widget/ClickableWidget;onClick(DD)V
    • playDownSound

      public void playDownSound(SoundManager soundManager)
      Overrides:
      playDownSound in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leso;a(Lgdq;)V
      intermediary method_25354 Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V
      named playDownSound Lnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V
    • renderButton

      public void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Leso;b(Lesf;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • drawSelectionHighlight

      private void drawSelectionHighlight(DrawContext context, int x1, int y1, int x2, int y2)
      Mappings:
      Namespace Name Mixin selector
      official a Lesz;a(Lesf;IIII)V
      intermediary method_1886 Lnet/minecraft/class_342;method_1886(Lnet/minecraft/class_332;IIII)V
      named drawSelectionHighlight Lnet/minecraft/client/gui/widget/TextFieldWidget;drawSelectionHighlight(Lnet/minecraft/client/gui/DrawContext;IIII)V
    • setMaxLength

      public void setMaxLength(int maxLength)
      Mappings:
      Namespace Name Mixin selector
      official l Lesz;l(I)V
      intermediary method_1880 Lnet/minecraft/class_342;method_1880(I)V
      named setMaxLength Lnet/minecraft/client/gui/widget/TextFieldWidget;setMaxLength(I)V
    • getMaxLength

      private int getMaxLength()
      Mappings:
      Namespace Name Mixin selector
      official w Lesz;w()I
      intermediary method_1861 Lnet/minecraft/class_342;method_1861()I
      named getMaxLength Lnet/minecraft/client/gui/widget/TextFieldWidget;getMaxLength()I
    • getCursor

      public int getCursor()
      Mappings:
      Namespace Name Mixin selector
      official f Lesz;f()I
      intermediary method_1881 Lnet/minecraft/class_342;method_1881()I
      named getCursor Lnet/minecraft/client/gui/widget/TextFieldWidget;getCursor()I
    • drawsBackground

      public boolean drawsBackground()
      Mappings:
      Namespace Name Mixin selector
      official g Lesz;g()Z
      intermediary method_1851 Lnet/minecraft/class_342;method_1851()Z
      named drawsBackground Lnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground()Z
    • setDrawsBackground

      public void setDrawsBackground(boolean drawsBackground)
      Mappings:
      Namespace Name Mixin selector
      official d Lesz;d(Z)V
      intermediary method_1858 Lnet/minecraft/class_342;method_1858(Z)V
      named setDrawsBackground Lnet/minecraft/client/gui/widget/TextFieldWidget;setDrawsBackground(Z)V
    • setEditableColor

      public void setEditableColor(int editableColor)
      Mappings:
      Namespace Name Mixin selector
      official m Lesz;m(I)V
      intermediary method_1868 Lnet/minecraft/class_342;method_1868(I)V
      named setEditableColor Lnet/minecraft/client/gui/widget/TextFieldWidget;setEditableColor(I)V
    • setUneditableColor

      public void setUneditableColor(int uneditableColor)
      Mappings:
      Namespace Name Mixin selector
      official n Lesz;n(I)V
      intermediary method_1860 Lnet/minecraft/class_342;method_1860(I)V
      named setUneditableColor Lnet/minecraft/client/gui/widget/TextFieldWidget;setUneditableColor(I)V
    • getNavigationPath

      @Nullable public @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Overrides:
      getNavigationPath in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(Lewo;)Lesc;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Overrides:
      isMouseOver in class ClickableWidget
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      Returns:
      true if the mouse is within the bound of the element, otherwise false
      Mappings:
      Namespace Name Mixin selector
      official a_ Leuk;a_(DD)Z
      intermediary method_25405 Lnet/minecraft/class_364;method_25405(DD)Z
      named isMouseOver Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
    • setFocused

      public void setFocused(boolean focused)
      Specified by:
      setFocused in interface Element
      Overrides:
      setFocused in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b_ Leuk;b_(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V
    • isEditable

      private boolean isEditable()
      Mappings:
      Namespace Name Mixin selector
      official x Lesz;x()Z
      intermediary method_20316 Lnet/minecraft/class_342;method_20316()Z
      named isEditable Lnet/minecraft/client/gui/widget/TextFieldWidget;isEditable()Z
    • setEditable

      public void setEditable(boolean editable)
      Mappings:
      Namespace Name Mixin selector
      official e Lesz;e(Z)V
      intermediary method_1888 Lnet/minecraft/class_342;method_1888(Z)V
      named setEditable Lnet/minecraft/client/gui/widget/TextFieldWidget;setEditable(Z)V
    • getInnerWidth

      public int getInnerWidth()
      Mappings:
      Namespace Name Mixin selector
      official h Lesz;h()I
      intermediary method_1859 Lnet/minecraft/class_342;method_1859()I
      named getInnerWidth Lnet/minecraft/client/gui/widget/TextFieldWidget;getInnerWidth()I
    • setSelectionEnd

      public void setSelectionEnd(int index)
      Mappings:
      Namespace Name Mixin selector
      official o Lesz;o(I)V
      intermediary method_1884 Lnet/minecraft/class_342;method_1884(I)V
      named setSelectionEnd Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionEnd(I)V
    • updateFirstCharacterIndex

      private void updateFirstCharacterIndex(int cursor)
      Mappings:
      Namespace Name Mixin selector
      official s Lesz;s(I)V
      intermediary method_52719 Lnet/minecraft/class_342;method_52719(I)V
      named updateFirstCharacterIndex Lnet/minecraft/client/gui/widget/TextFieldWidget;updateFirstCharacterIndex(I)V
    • setFocusUnlocked

      public void setFocusUnlocked(boolean focusUnlocked)
      Mappings:
      Namespace Name Mixin selector
      official f Lesz;f(Z)V
      intermediary method_1856 Lnet/minecraft/class_342;method_1856(Z)V
      named setFocusUnlocked Lnet/minecraft/client/gui/widget/TextFieldWidget;setFocusUnlocked(Z)V
    • isVisible

      public boolean isVisible()
      Mappings:
      Namespace Name Mixin selector
      official v Lesz;v()Z
      intermediary method_1885 Lnet/minecraft/class_342;method_1885()Z
      named isVisible Lnet/minecraft/client/gui/widget/TextFieldWidget;isVisible()Z
    • setVisible

      public void setVisible(boolean visible)
      Mappings:
      Namespace Name Mixin selector
      official g Lesz;g(Z)V
      intermediary method_1862 Lnet/minecraft/class_342;method_1862(Z)V
      named setVisible Lnet/minecraft/client/gui/widget/TextFieldWidget;setVisible(Z)V
    • setSuggestion

      public void setSuggestion(@Nullable @Nullable String suggestion)
      Mappings:
      Namespace Name Mixin selector
      official c Lesz;c(Ljava/lang/String;)V
      intermediary method_1887 Lnet/minecraft/class_342;method_1887(Ljava/lang/String;)V
      named setSuggestion Lnet/minecraft/client/gui/widget/TextFieldWidget;setSuggestion(Ljava/lang/String;)V
    • getCharacterX

      public int getCharacterX(int index)
      Mappings:
      Namespace Name Mixin selector
      official p Lesz;p(I)I
      intermediary method_1889 Lnet/minecraft/class_342;method_1889(I)I
      named getCharacterX Lnet/minecraft/client/gui/widget/TextFieldWidget;getCharacterX(I)I
    • appendClickableNarrations

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leso;a(Lewi;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • setPlaceholder

      public void setPlaceholder(Text placeholder)
      Mappings:
      Namespace Name Mixin selector
      official c Lesz;c(Ltl;)V
      intermediary method_47404 Lnet/minecraft/class_342;method_47404(Lnet/minecraft/class_2561;)V
      named setPlaceholder Lnet/minecraft/client/gui/widget/TextFieldWidget;setPlaceholder(Lnet/minecraft/text/Text;)V