Package net.minecraft.client.gui.widget
Class TextFieldWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.TextFieldWidget
- All Implemented Interfaces:
class_8021,Drawable,Element,Narratable,Selectable
- Mappings:
Namespace Name official elvintermediary net/minecraft/class_342named net/minecraft/client/gui/widget/TextFieldWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intstatic final intprivate booleanprivate booleanprivate intstatic final intstatic final intprivate static final intprivate static final intprivate intThe index of the leftmost character that is rendered on a screen.private intprivate booleanprivate static final Stringprivate intprivate BiFunction<String,Integer, OrderedText> private booleanprivate intprivate intprivate Stringprivate final TextRendererprivate intprivate static final intFields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, field_41797, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionTextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, @Nullable TextFieldWidget copyFrom, Text text) TextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, Text text) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancharTyped(char chr, int modifiers) Callback for when a character input has been captured.private booleanprivate voiddrawSelectionHighlight(MatrixStack matrixStack, int int2, int int3, int int4, int int5) private voiderase(int offset) voideraseCharacters(int characterOffset) voideraseWords(int wordOffset) intgetCharacterX(int index) intprivate intgetCursorPosWithOffset(int offset) intprivate intprotected MutableTextgetText()intgetWordSkipPosition(int wordOffset) private intgetWordSkipPosition(int wordOffset, int cursorPosition) private intgetWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces) booleanisActive()private booleanbooleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.booleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.method_48205(class_8023 class_8023) booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidmoveCursor(int offset) private voidvoidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta) voidsetChangedListener(Consumer<String> changedListener) voidsetCursor(int cursor) voidvoidvoidsetDrawsBackground(boolean drawsBackground) voidsetEditable(boolean editable) voidsetEditableColor(int editableColor) voidsetFocused(boolean bool) voidsetFocusUnlocked(boolean focusUnlocked) voidsetMaxLength(int maxLength) voidsetPlaceholder(Text placeholder) voidsetRenderTextProvider(BiFunction<String, Integer, OrderedText> renderTextProvider) voidsetSelectionEnd(int index) voidsetSelectionStart(int cursor) voidsetSuggestion(@Nullable String suggestion) voidvoidsetTextPredicate(Predicate<String> textPredicate) voidsetUneditableColor(int uneditableColor) voidsetVisible(boolean visible) voidtick()voidMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, getHeight, getMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isNarratable, isValidClickButton, method_48202, method_48203, method_48206, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, renderBackground, setAlpha, setMessage, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_8021
method_48229Methods inherited from interface net.minecraft.client.gui.Element
keyReleased, method_48218, mouseMoved, mouseScrolled
-
Field Details
-
field_32194
public static final int field_32194- See Also:
- Mappings:
Namespace Name Mixin selector official aLelv;a:Iintermediary field_32194Lnet/minecraft/class_342;field_32194:Inamed field_32194Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32194:I
-
field_32195
public static final int field_32195- See Also:
- Mappings:
Namespace Name Mixin selector official bLelv;b:Iintermediary field_32195Lnet/minecraft/class_342;field_32195:Inamed field_32195Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32195:I
-
field_32197
private static final int field_32197- See Also:
- Mappings:
Namespace Name Mixin selector official dLelv;d:Iintermediary field_32197Lnet/minecraft/class_342;field_32197:Inamed field_32197Lnet/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 eLelv;e:Iintermediary field_32198Lnet/minecraft/class_342;field_32198:Inamed VERTICAL_CURSOR_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;VERTICAL_CURSOR_COLOR:I
-
HORIZONTAL_CURSOR
- See Also:
- Mappings:
Namespace Name Mixin selector official fLelv;f:Ljava/lang/String;intermediary field_32199Lnet/minecraft/class_342;field_32199:Ljava/lang/String;named HORIZONTAL_CURSORLnet/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 cLelv;c:Iintermediary field_32196Lnet/minecraft/class_342;field_32196:Inamed DEFAULT_EDITABLE_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;DEFAULT_EDITABLE_COLOR:I
-
field_32201
private static final int field_32201- See Also:
- Mappings:
Namespace Name Mixin selector official rLelv;r:Iintermediary field_32201Lnet/minecraft/class_342;field_32201:Inamed field_32201Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32201:I
-
BORDER_COLOR
private static final int BORDER_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector official sLelv;s:Iintermediary field_32202Lnet/minecraft/class_342;field_32202:Inamed BORDER_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;BORDER_COLOR:I
-
BACKGROUND_COLOR
private static final int BACKGROUND_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector official tLelv;t:Iintermediary field_32203Lnet/minecraft/class_342;field_32203:Inamed BACKGROUND_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;BACKGROUND_COLOR:I
-
textRenderer
- Mappings:
Namespace Name Mixin selector official uLelv;u:Lela;intermediary field_2105Lnet/minecraft/class_342;field_2105:Lnet/minecraft/class_327;named textRendererLnet/minecraft/client/gui/widget/TextFieldWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
text
- Mappings:
Namespace Name Mixin selector official vLelv;v:Ljava/lang/String;intermediary field_2092Lnet/minecraft/class_342;field_2092:Ljava/lang/String;named textLnet/minecraft/client/gui/widget/TextFieldWidget;text:Ljava/lang/String;
-
maxLength
private int maxLength- Mappings:
Namespace Name Mixin selector official wLelv;w:Iintermediary field_2108Lnet/minecraft/class_342;field_2108:Inamed maxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;maxLength:I
-
focusedTicks
private int focusedTicks- Mappings:
Namespace Name Mixin selector official xLelv;x:Iintermediary field_2107Lnet/minecraft/class_342;field_2107:Inamed focusedTicksLnet/minecraft/client/gui/widget/TextFieldWidget;focusedTicks:I
-
drawsBackground
private boolean drawsBackground- Mappings:
Namespace Name Mixin selector official yLelv;y:Zintermediary field_2095Lnet/minecraft/class_342;field_2095:Znamed drawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground:Z
-
focusUnlocked
private boolean focusUnlocked- Mappings:
Namespace Name Mixin selector official zLelv;z:Zintermediary field_2096Lnet/minecraft/class_342;field_2096:Znamed focusUnlockedLnet/minecraft/client/gui/widget/TextFieldWidget;focusUnlocked:Z
-
editable
private boolean editable- Mappings:
Namespace Name Mixin selector official ALelv;A:Zintermediary field_2094Lnet/minecraft/class_342;field_2094:Znamed editableLnet/minecraft/client/gui/widget/TextFieldWidget;editable:Z
-
selecting
private boolean selecting- Mappings:
Namespace Name Mixin selector official BLelv;B:Zintermediary field_17037Lnet/minecraft/class_342;field_17037:Znamed selectingLnet/minecraft/client/gui/widget/TextFieldWidget;selecting:Z
-
firstCharacterIndex
private int firstCharacterIndexThe index of the leftmost character that is rendered on a screen.- Mappings:
Namespace Name Mixin selector official CLelv;C:Iintermediary field_2103Lnet/minecraft/class_342;field_2103:Inamed firstCharacterIndexLnet/minecraft/client/gui/widget/TextFieldWidget;firstCharacterIndex:I
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector official DLelv;D:Iintermediary field_2102Lnet/minecraft/class_342;field_2102:Inamed selectionStartLnet/minecraft/client/gui/widget/TextFieldWidget;selectionStart:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector official ELelv;E:Iintermediary field_2101Lnet/minecraft/class_342;field_2101:Inamed selectionEndLnet/minecraft/client/gui/widget/TextFieldWidget;selectionEnd:I
-
editableColor
private int editableColor- Mappings:
Namespace Name Mixin selector official FLelv;F:Iintermediary field_2100Lnet/minecraft/class_342;field_2100:Inamed editableColorLnet/minecraft/client/gui/widget/TextFieldWidget;editableColor:I
-
uneditableColor
private int uneditableColor- Mappings:
Namespace Name Mixin selector official GLelv;G:Iintermediary field_2098Lnet/minecraft/class_342;field_2098:Inamed uneditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;uneditableColor:I
-
suggestion
- Mappings:
Namespace Name Mixin selector official HLelv;H:Ljava/lang/String;intermediary field_2106Lnet/minecraft/class_342;field_2106:Ljava/lang/String;named suggestionLnet/minecraft/client/gui/widget/TextFieldWidget;suggestion:Ljava/lang/String;
-
changedListener
- Mappings:
Namespace Name Mixin selector official ILelv;I:Ljava/util/function/Consumer;intermediary field_2088Lnet/minecraft/class_342;field_2088:Ljava/util/function/Consumer;named changedListenerLnet/minecraft/client/gui/widget/TextFieldWidget;changedListener:Ljava/util/function/Consumer;
-
textPredicate
- Mappings:
Namespace Name Mixin selector official JLelv;J:Ljava/util/function/Predicate;intermediary field_2104Lnet/minecraft/class_342;field_2104:Ljava/util/function/Predicate;named textPredicateLnet/minecraft/client/gui/widget/TextFieldWidget;textPredicate:Ljava/util/function/Predicate;
-
renderTextProvider
- Mappings:
Namespace Name Mixin selector official KLelv;K:Ljava/util/function/BiFunction;intermediary field_2099Lnet/minecraft/class_342;field_2099:Ljava/util/function/BiFunction;named renderTextProviderLnet/minecraft/client/gui/widget/TextFieldWidget;renderTextProvider:Ljava/util/function/BiFunction;
-
placeholder
- Mappings:
Namespace Name Mixin selector official LLelv;L:Lsu;intermediary field_41100Lnet/minecraft/class_342;field_41100:Lnet/minecraft/class_2561;named placeholderLnet/minecraft/client/gui/widget/TextFieldWidget;placeholder:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
TextFieldWidget
- Mappings:
Namespace Name Mixin selector official <init>Lelv;<init>(Lela;IIIILsu;)Vintermediary <init>Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;)Vnamed <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>Lelv;<init>(Lela;IIIILelv;Lsu;)Vintermediary <init>Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_342;Lnet/minecraft/class_2561;)Vnamed <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
- Mappings:
Namespace Name Mixin selector official bLelv;b(Ljava/util/function/Consumer;)Vintermediary method_1863Lnet/minecraft/class_342;method_1863(Ljava/util/function/Consumer;)Vnamed setChangedListenerLnet/minecraft/client/gui/widget/TextFieldWidget;setChangedListener(Ljava/util/function/Consumer;)V
-
setRenderTextProvider
- Mappings:
Namespace Name Mixin selector official aLelv;a(Ljava/util/function/BiFunction;)Vintermediary method_1854Lnet/minecraft/class_342;method_1854(Ljava/util/function/BiFunction;)Vnamed setRenderTextProviderLnet/minecraft/client/gui/widget/TextFieldWidget;setRenderTextProvider(Ljava/util/function/BiFunction;)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official aLelv;a()Vintermediary method_1865Lnet/minecraft/class_342;method_1865()Vnamed tickLnet/minecraft/client/gui/widget/TextFieldWidget;tick()V
-
getNarrationMessage
- Overrides:
getNarrationMessagein classClickableWidget- Mappings:
Namespace Name Mixin selector official at_Lelj;at_()Lth;intermediary method_25360Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;named getNarrationMessageLnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
setText
- Mappings:
Namespace Name Mixin selector official aLelv;a(Ljava/lang/String;)Vintermediary method_1852Lnet/minecraft/class_342;method_1852(Ljava/lang/String;)Vnamed setTextLnet/minecraft/client/gui/widget/TextFieldWidget;setText(Ljava/lang/String;)V
-
getText
- Mappings:
Namespace Name Mixin selector official bLelv;b()Ljava/lang/String;intermediary method_1882Lnet/minecraft/class_342;method_1882()Ljava/lang/String;named getTextLnet/minecraft/client/gui/widget/TextFieldWidget;getText()Ljava/lang/String;
-
getSelectedText
- Mappings:
Namespace Name Mixin selector official gLelv;g()Ljava/lang/String;intermediary method_1866Lnet/minecraft/class_342;method_1866()Ljava/lang/String;named getSelectedTextLnet/minecraft/client/gui/widget/TextFieldWidget;getSelectedText()Ljava/lang/String;
-
setTextPredicate
- Mappings:
Namespace Name Mixin selector official aLelv;a(Ljava/util/function/Predicate;)Vintermediary method_1890Lnet/minecraft/class_342;method_1890(Ljava/util/function/Predicate;)Vnamed setTextPredicateLnet/minecraft/client/gui/widget/TextFieldWidget;setTextPredicate(Ljava/util/function/Predicate;)V
-
write
- Mappings:
Namespace Name Mixin selector official bLelv;b(Ljava/lang/String;)Vintermediary method_1867Lnet/minecraft/class_342;method_1867(Ljava/lang/String;)Vnamed writeLnet/minecraft/client/gui/widget/TextFieldWidget;write(Ljava/lang/String;)V
-
onChanged
- Mappings:
Namespace Name Mixin selector official dLelv;d(Ljava/lang/String;)Vintermediary method_1874Lnet/minecraft/class_342;method_1874(Ljava/lang/String;)Vnamed onChangedLnet/minecraft/client/gui/widget/TextFieldWidget;onChanged(Ljava/lang/String;)V
-
erase
private void erase(int offset) - Mappings:
Namespace Name Mixin selector official rLelv;r(I)Vintermediary method_16873Lnet/minecraft/class_342;method_16873(I)Vnamed eraseLnet/minecraft/client/gui/widget/TextFieldWidget;erase(I)V
-
eraseWords
public void eraseWords(int wordOffset) - Mappings:
Namespace Name Mixin selector official gLelv;g(I)Vintermediary method_1877Lnet/minecraft/class_342;method_1877(I)Vnamed eraseWordsLnet/minecraft/client/gui/widget/TextFieldWidget;eraseWords(I)V
-
eraseCharacters
public void eraseCharacters(int characterOffset) - Mappings:
Namespace Name Mixin selector official hLelv;h(I)Vintermediary method_1878Lnet/minecraft/class_342;method_1878(I)Vnamed eraseCharactersLnet/minecraft/client/gui/widget/TextFieldWidget;eraseCharacters(I)V
-
getWordSkipPosition
public int getWordSkipPosition(int wordOffset) - Mappings:
Namespace Name Mixin selector official iLelv;i(I)Iintermediary method_1853Lnet/minecraft/class_342;method_1853(I)Inamed getWordSkipPositionLnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(I)I
-
getWordSkipPosition
private int getWordSkipPosition(int wordOffset, int cursorPosition) - Mappings:
Namespace Name Mixin selector official aLelv;a(II)Iintermediary method_1869Lnet/minecraft/class_342;method_1869(II)Inamed getWordSkipPositionLnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(II)I
-
getWordSkipPosition
private int getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces) - Mappings:
Namespace Name Mixin selector official aLelv;a(IIZ)Iintermediary method_1864Lnet/minecraft/class_342;method_1864(IIZ)Inamed getWordSkipPositionLnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(IIZ)I
-
moveCursor
public void moveCursor(int offset) - Mappings:
Namespace Name Mixin selector official jLelv;j(I)Vintermediary method_1855Lnet/minecraft/class_342;method_1855(I)Vnamed moveCursorLnet/minecraft/client/gui/widget/TextFieldWidget;moveCursor(I)V
-
getCursorPosWithOffset
private int getCursorPosWithOffset(int offset) - Mappings:
Namespace Name Mixin selector official sLelv;s(I)Iintermediary method_27537Lnet/minecraft/class_342;method_27537(I)Inamed getCursorPosWithOffsetLnet/minecraft/client/gui/widget/TextFieldWidget;getCursorPosWithOffset(I)I
-
setCursor
public void setCursor(int cursor) - Mappings:
Namespace Name Mixin selector official kLelv;k(I)Vintermediary method_1883Lnet/minecraft/class_342;method_1883(I)Vnamed setCursorLnet/minecraft/client/gui/widget/TextFieldWidget;setCursor(I)V
-
setSelectionStart
public void setSelectionStart(int cursor) - Mappings:
Namespace Name Mixin selector official lLelv;l(I)Vintermediary method_1875Lnet/minecraft/class_342;method_1875(I)Vnamed setSelectionStartLnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionStart(I)V
-
setCursorToStart
public void setCursorToStart()- Mappings:
Namespace Name Mixin selector official rLelv;r()Vintermediary method_1870Lnet/minecraft/class_342;method_1870()Vnamed setCursorToStartLnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToStart()V
-
setCursorToEnd
public void setCursorToEnd()- Mappings:
Namespace Name Mixin selector official tLelv;t()Vintermediary method_1872Lnet/minecraft/class_342;method_1872()Vnamed setCursorToEndLnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToEnd()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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLemq;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector official vLelv;v()Zintermediary method_20315Lnet/minecraft/class_342;method_20315()Znamed isActiveLnet/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 inGLFWclass.- Specified by:
charTypedin interfaceElement- Parameters:
chr- the captured charactermodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLemq;a(CI)Zintermediary method_25400Lnet/minecraft/class_364;method_25400(CI)Znamed charTypedLnet/minecraft/client/gui/Element;charTyped(CI)Z
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLemq;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
renderButton
- Overrides:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector official bLelj;b(Leer;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawSelectionHighlight
private void drawSelectionHighlight(MatrixStack matrixStack, int int2, int int3, int int4, int int5) - Mappings:
Namespace Name Mixin selector official cLelv;c(Leer;IIII)Vintermediary method_1886Lnet/minecraft/class_342;method_1886(Lnet/minecraft/class_4587;IIII)Vnamed drawSelectionHighlightLnet/minecraft/client/gui/widget/TextFieldWidget;drawSelectionHighlight(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-
setMaxLength
public void setMaxLength(int maxLength) - Mappings:
Namespace Name Mixin selector official mLelv;m(I)Vintermediary method_1880Lnet/minecraft/class_342;method_1880(I)Vnamed setMaxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;setMaxLength(I)V
-
getMaxLength
private int getMaxLength()- Mappings:
Namespace Name Mixin selector official zLelv;z()Iintermediary method_1861Lnet/minecraft/class_342;method_1861()Inamed getMaxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;getMaxLength()I
-
getCursor
public int getCursor()- Mappings:
Namespace Name Mixin selector official wLelv;w()Iintermediary method_1881Lnet/minecraft/class_342;method_1881()Inamed getCursorLnet/minecraft/client/gui/widget/TextFieldWidget;getCursor()I
-
drawsBackground
private boolean drawsBackground()- Mappings:
Namespace Name Mixin selector official ALelv;A()Zintermediary method_1851Lnet/minecraft/class_342;method_1851()Znamed drawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground()Z
-
setDrawsBackground
public void setDrawsBackground(boolean drawsBackground) - Mappings:
Namespace Name Mixin selector official bLelv;b(Z)Vintermediary method_1858Lnet/minecraft/class_342;method_1858(Z)Vnamed setDrawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;setDrawsBackground(Z)V
-
setEditableColor
public void setEditableColor(int editableColor) - Mappings:
Namespace Name Mixin selector official nLelv;n(I)Vintermediary method_1868Lnet/minecraft/class_342;method_1868(I)Vnamed setEditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;setEditableColor(I)V
-
setUneditableColor
public void setUneditableColor(int uneditableColor) - Mappings:
Namespace Name Mixin selector official oLelv;o(I)Vintermediary method_1860Lnet/minecraft/class_342;method_1860(I)Vnamed setUneditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;setUneditableColor(I)V
-
method_48205
- Specified by:
method_48205in interfaceElement- Overrides:
method_48205in classClickableWidget- Mappings:
Namespace Name Mixin selector official aLemq;a(Leoh;)Lekz;intermediary method_48205Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;named method_48205Lnet/minecraft/client/gui/Element;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Overrides:
isMouseOverin classClickableWidget- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector official a_Lemq;a_(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
setFocused
public void setFocused(boolean bool) - Specified by:
setFocusedin interfaceElement- Overrides:
setFocusedin classClickableWidget- Mappings:
Namespace Name Mixin selector official b_Lemq;b_(Z)Vintermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vnamed setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)V
-
isEditable
private boolean isEditable()- Mappings:
Namespace Name Mixin selector official BLelv;B()Zintermediary method_20316Lnet/minecraft/class_342;method_20316()Znamed isEditableLnet/minecraft/client/gui/widget/TextFieldWidget;isEditable()Z
-
setEditable
public void setEditable(boolean editable) - Mappings:
Namespace Name Mixin selector official cLelv;c(Z)Vintermediary method_1888Lnet/minecraft/class_342;method_1888(Z)Vnamed setEditableLnet/minecraft/client/gui/widget/TextFieldWidget;setEditable(Z)V
-
getInnerWidth
public int getInnerWidth()- Mappings:
Namespace Name Mixin selector official xLelv;x()Iintermediary method_1859Lnet/minecraft/class_342;method_1859()Inamed getInnerWidthLnet/minecraft/client/gui/widget/TextFieldWidget;getInnerWidth()I
-
setSelectionEnd
public void setSelectionEnd(int index) - Mappings:
Namespace Name Mixin selector official pLelv;p(I)Vintermediary method_1884Lnet/minecraft/class_342;method_1884(I)Vnamed setSelectionEndLnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionEnd(I)V
-
setFocusUnlocked
public void setFocusUnlocked(boolean focusUnlocked) - Mappings:
Namespace Name Mixin selector official dLelv;d(Z)Vintermediary method_1856Lnet/minecraft/class_342;method_1856(Z)Vnamed setFocusUnlockedLnet/minecraft/client/gui/widget/TextFieldWidget;setFocusUnlocked(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector official yLelv;y()Zintermediary method_1885Lnet/minecraft/class_342;method_1885()Znamed isVisibleLnet/minecraft/client/gui/widget/TextFieldWidget;isVisible()Z
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector official eLelv;e(Z)Vintermediary method_1862Lnet/minecraft/class_342;method_1862(Z)Vnamed setVisibleLnet/minecraft/client/gui/widget/TextFieldWidget;setVisible(Z)V
-
setSuggestion
- Mappings:
Namespace Name Mixin selector official cLelv;c(Ljava/lang/String;)Vintermediary method_1887Lnet/minecraft/class_342;method_1887(Ljava/lang/String;)Vnamed setSuggestionLnet/minecraft/client/gui/widget/TextFieldWidget;setSuggestion(Ljava/lang/String;)V
-
getCharacterX
public int getCharacterX(int index) - Mappings:
Namespace Name Mixin selector official qLelv;q(I)Iintermediary method_1889Lnet/minecraft/class_342;method_1889(I)Inamed getCharacterXLnet/minecraft/client/gui/widget/TextFieldWidget;getCharacterX(I)I
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector official aLelj;a(Leoc;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
setPlaceholder
- Mappings:
Namespace Name Mixin selector official cLelv;c(Lsu;)Vintermediary method_47404Lnet/minecraft/class_342;method_47404(Lnet/minecraft/class_2561;)Vnamed setPlaceholderLnet/minecraft/client/gui/widget/TextFieldWidget;setPlaceholder(Lnet/minecraft/text/Text;)V
-