Package net.minecraft.client.gui.widget
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
- Mappings:
Namespace Name intermediary net/minecraft/class_342official epjnamed 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
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields 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(DrawContext context, int x1, int y1, int x2, int y2) private voiderase(int offset) voideraseCharacters(int characterOffset) voideraseWords(int wordOffset) intgetCharacterX(int index) intprivate intgetCursorPosWithOffset(int offset) intprivate intprotected MutableTextgetNavigationPath(GuiNavigation navigation) getText()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.voidmoveCursor(int offset) private voidvoidonClick(double mouseX, double mouseY) voidplayDownSound(SoundManager soundManager) voidrenderButton(DrawContext context, int mouseX, int mouseY, float delta) voidsetChangedListener(Consumer<String> changedListener) voidsetCursor(int cursor) voidvoidvoidsetDrawsBackground(boolean drawsBackground) voidsetEditable(boolean editable) voidsetEditableColor(int editableColor) voidsetFocused(boolean focused) 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, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, render, setAlpha, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_32194
public static final int field_32194- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32194Lnet/minecraft/class_342;field_32194:Iofficial aLepj;a: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 intermediary field_32195Lnet/minecraft/class_342;field_32195:Iofficial bLepj;b: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 intermediary field_32197Lnet/minecraft/class_342;field_32197:Iofficial dLepj;d: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 intermediary field_32198Lnet/minecraft/class_342;field_32198:Iofficial eLepj;e:Inamed VERTICAL_CURSOR_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;VERTICAL_CURSOR_COLOR:I
-
HORIZONTAL_CURSOR
- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32199Lnet/minecraft/class_342;field_32199:Ljava/lang/String;official fLepj;f: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 intermediary field_32196Lnet/minecraft/class_342;field_32196:Iofficial cLepj;c: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 intermediary field_32201Lnet/minecraft/class_342;field_32201:Iofficial gLepj;g: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 intermediary field_32202Lnet/minecraft/class_342;field_32202:Iofficial hLepj;h: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 intermediary field_32203Lnet/minecraft/class_342;field_32203:Iofficial iLepj;i:Inamed BACKGROUND_COLORLnet/minecraft/client/gui/widget/TextFieldWidget;BACKGROUND_COLOR:I
-
textRenderer
- Mappings:
Namespace Name Mixin selector intermediary field_2105Lnet/minecraft/class_342;field_2105:Lnet/minecraft/class_327;official jLepj;j:Leon;named textRendererLnet/minecraft/client/gui/widget/TextFieldWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
text
- Mappings:
Namespace Name Mixin selector intermediary field_2092Lnet/minecraft/class_342;field_2092:Ljava/lang/String;official kLepj;k:Ljava/lang/String;named textLnet/minecraft/client/gui/widget/TextFieldWidget;text:Ljava/lang/String;
-
maxLength
private int maxLength- Mappings:
Namespace Name Mixin selector intermediary field_2108Lnet/minecraft/class_342;field_2108:Iofficial lLepj;l:Inamed maxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;maxLength:I
-
focusedTicks
private int focusedTicks- Mappings:
Namespace Name Mixin selector intermediary field_2107Lnet/minecraft/class_342;field_2107:Iofficial uLepj;u:Inamed focusedTicksLnet/minecraft/client/gui/widget/TextFieldWidget;focusedTicks:I
-
drawsBackground
private boolean drawsBackground- Mappings:
Namespace Name Mixin selector intermediary field_2095Lnet/minecraft/class_342;field_2095:Zofficial vLepj;v:Znamed drawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground:Z
-
focusUnlocked
private boolean focusUnlocked- Mappings:
Namespace Name Mixin selector intermediary field_2096Lnet/minecraft/class_342;field_2096:Zofficial wLepj;w:Znamed focusUnlockedLnet/minecraft/client/gui/widget/TextFieldWidget;focusUnlocked:Z
-
editable
private boolean editable- Mappings:
Namespace Name Mixin selector intermediary field_2094Lnet/minecraft/class_342;field_2094:Zofficial xLepj;x:Znamed editableLnet/minecraft/client/gui/widget/TextFieldWidget;editable:Z
-
selecting
private boolean selecting- Mappings:
Namespace Name Mixin selector intermediary field_17037Lnet/minecraft/class_342;field_17037:Zofficial yLepj;y: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 intermediary field_2103Lnet/minecraft/class_342;field_2103:Iofficial zLepj;z:Inamed firstCharacterIndexLnet/minecraft/client/gui/widget/TextFieldWidget;firstCharacterIndex:I
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector intermediary field_2102Lnet/minecraft/class_342;field_2102:Iofficial ALepj;A:Inamed selectionStartLnet/minecraft/client/gui/widget/TextFieldWidget;selectionStart:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector intermediary field_2101Lnet/minecraft/class_342;field_2101:Iofficial CLepj;C:Inamed selectionEndLnet/minecraft/client/gui/widget/TextFieldWidget;selectionEnd:I
-
editableColor
private int editableColor- Mappings:
Namespace Name Mixin selector intermediary field_2100Lnet/minecraft/class_342;field_2100:Iofficial DLepj;D:Inamed editableColorLnet/minecraft/client/gui/widget/TextFieldWidget;editableColor:I
-
uneditableColor
private int uneditableColor- Mappings:
Namespace Name Mixin selector intermediary field_2098Lnet/minecraft/class_342;field_2098:Iofficial ELepj;E:Inamed uneditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;uneditableColor:I
-
suggestion
- Mappings:
Namespace Name Mixin selector intermediary field_2106Lnet/minecraft/class_342;field_2106:Ljava/lang/String;official FLepj;F:Ljava/lang/String;named suggestionLnet/minecraft/client/gui/widget/TextFieldWidget;suggestion:Ljava/lang/String;
-
changedListener
- Mappings:
Namespace Name Mixin selector intermediary field_2088Lnet/minecraft/class_342;field_2088:Ljava/util/function/Consumer;official GLepj;G:Ljava/util/function/Consumer;named changedListenerLnet/minecraft/client/gui/widget/TextFieldWidget;changedListener:Ljava/util/function/Consumer;
-
textPredicate
- Mappings:
Namespace Name Mixin selector intermediary field_2104Lnet/minecraft/class_342;field_2104:Ljava/util/function/Predicate;official HLepj;H:Ljava/util/function/Predicate;named textPredicateLnet/minecraft/client/gui/widget/TextFieldWidget;textPredicate:Ljava/util/function/Predicate;
-
renderTextProvider
- Mappings:
Namespace Name Mixin selector intermediary field_2099Lnet/minecraft/class_342;field_2099:Ljava/util/function/BiFunction;official ILepj;I:Ljava/util/function/BiFunction;named renderTextProviderLnet/minecraft/client/gui/widget/TextFieldWidget;renderTextProvider:Ljava/util/function/BiFunction;
-
placeholder
- Mappings:
Namespace Name Mixin selector intermediary field_41100Lnet/minecraft/class_342;field_41100:Lnet/minecraft/class_2561;official JLepj;J:Lsw;named placeholderLnet/minecraft/client/gui/widget/TextFieldWidget;placeholder:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
TextFieldWidget
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;)Vofficial <init>Lepj;<init>(Leon;IIIILsw;)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 intermediary <init>Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_342;Lnet/minecraft/class_2561;)Vofficial <init>Lepj;<init>(Leon;IIIILepj;Lsw;)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 intermediary method_1863Lnet/minecraft/class_342;method_1863(Ljava/util/function/Consumer;)Vofficial bLepj;b(Ljava/util/function/Consumer;)Vnamed setChangedListenerLnet/minecraft/client/gui/widget/TextFieldWidget;setChangedListener(Ljava/util/function/Consumer;)V
-
setRenderTextProvider
- Mappings:
Namespace Name Mixin selector intermediary method_1854Lnet/minecraft/class_342;method_1854(Ljava/util/function/BiFunction;)Vofficial aLepj;a(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 intermediary method_1865Lnet/minecraft/class_342;method_1865()Vofficial aLepj;a()Vnamed tickLnet/minecraft/client/gui/widget/TextFieldWidget;tick()V
-
getNarrationMessage
- Overrides:
getNarrationMessagein classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_25360Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;official aE_Leox;aE_()Ltj;named getNarrationMessageLnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
setText
- Mappings:
Namespace Name Mixin selector intermediary method_1852Lnet/minecraft/class_342;method_1852(Ljava/lang/String;)Vofficial aLepj;a(Ljava/lang/String;)Vnamed setTextLnet/minecraft/client/gui/widget/TextFieldWidget;setText(Ljava/lang/String;)V
-
getText
- Mappings:
Namespace Name Mixin selector intermediary method_1882Lnet/minecraft/class_342;method_1882()Ljava/lang/String;official bLepj;b()Ljava/lang/String;named getTextLnet/minecraft/client/gui/widget/TextFieldWidget;getText()Ljava/lang/String;
-
getSelectedText
- Mappings:
Namespace Name Mixin selector intermediary method_1866Lnet/minecraft/class_342;method_1866()Ljava/lang/String;official eLepj;e()Ljava/lang/String;named getSelectedTextLnet/minecraft/client/gui/widget/TextFieldWidget;getSelectedText()Ljava/lang/String;
-
setTextPredicate
- Mappings:
Namespace Name Mixin selector intermediary method_1890Lnet/minecraft/class_342;method_1890(Ljava/util/function/Predicate;)Vofficial aLepj;a(Ljava/util/function/Predicate;)Vnamed setTextPredicateLnet/minecraft/client/gui/widget/TextFieldWidget;setTextPredicate(Ljava/util/function/Predicate;)V
-
write
- Mappings:
Namespace Name Mixin selector intermediary method_1867Lnet/minecraft/class_342;method_1867(Ljava/lang/String;)Vofficial bLepj;b(Ljava/lang/String;)Vnamed writeLnet/minecraft/client/gui/widget/TextFieldWidget;write(Ljava/lang/String;)V
-
onChanged
- Mappings:
Namespace Name Mixin selector intermediary method_1874Lnet/minecraft/class_342;method_1874(Ljava/lang/String;)Vofficial dLepj;d(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 intermediary method_16873Lnet/minecraft/class_342;method_16873(I)Vofficial rLepj;r(I)Vnamed eraseLnet/minecraft/client/gui/widget/TextFieldWidget;erase(I)V
-
eraseWords
public void eraseWords(int wordOffset) - Mappings:
Namespace Name Mixin selector intermediary method_1877Lnet/minecraft/class_342;method_1877(I)Vofficial aLepj;a(I)Vnamed eraseWordsLnet/minecraft/client/gui/widget/TextFieldWidget;eraseWords(I)V
-
eraseCharacters
public void eraseCharacters(int characterOffset) - Mappings:
Namespace Name Mixin selector intermediary method_1878Lnet/minecraft/class_342;method_1878(I)Vofficial hLepj;h(I)Vnamed eraseCharactersLnet/minecraft/client/gui/widget/TextFieldWidget;eraseCharacters(I)V
-
getWordSkipPosition
public int getWordSkipPosition(int wordOffset) - Mappings:
Namespace Name Mixin selector intermediary method_1853Lnet/minecraft/class_342;method_1853(I)Iofficial iLepj;i(I)Inamed getWordSkipPositionLnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(I)I
-
getWordSkipPosition
private int getWordSkipPosition(int wordOffset, int cursorPosition) - Mappings:
Namespace Name Mixin selector intermediary method_1869Lnet/minecraft/class_342;method_1869(II)Iofficial aLepj;a(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 intermediary method_1864Lnet/minecraft/class_342;method_1864(IIZ)Iofficial aLepj;a(IIZ)Inamed getWordSkipPositionLnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(IIZ)I
-
moveCursor
public void moveCursor(int offset) - Mappings:
Namespace Name Mixin selector intermediary method_1855Lnet/minecraft/class_342;method_1855(I)Vofficial jLepj;j(I)Vnamed moveCursorLnet/minecraft/client/gui/widget/TextFieldWidget;moveCursor(I)V
-
getCursorPosWithOffset
private int getCursorPosWithOffset(int offset) - Mappings:
Namespace Name Mixin selector intermediary method_27537Lnet/minecraft/class_342;method_27537(I)Iofficial sLepj;s(I)Inamed getCursorPosWithOffsetLnet/minecraft/client/gui/widget/TextFieldWidget;getCursorPosWithOffset(I)I
-
setCursor
public void setCursor(int cursor) - Mappings:
Namespace Name Mixin selector intermediary method_1883Lnet/minecraft/class_342;method_1883(I)Vofficial kLepj;k(I)Vnamed setCursorLnet/minecraft/client/gui/widget/TextFieldWidget;setCursor(I)V
-
setSelectionStart
public void setSelectionStart(int cursor) - Mappings:
Namespace Name Mixin selector intermediary method_1875Lnet/minecraft/class_342;method_1875(I)Vofficial lLepj;l(I)Vnamed setSelectionStartLnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionStart(I)V
-
setCursorToStart
public void setCursorToStart()- Mappings:
Namespace Name Mixin selector intermediary method_1870Lnet/minecraft/class_342;method_1870()Vofficial fLepj;f()Vnamed setCursorToStartLnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToStart()V
-
setCursorToEnd
public void setCursorToEnd()- Mappings:
Namespace Name Mixin selector intermediary method_1872Lnet/minecraft/class_342;method_1872()Vofficial gLepj;g()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 intermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLeqk;a(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector intermediary method_20315Lnet/minecraft/class_342;method_20315()Zofficial uLepj;u()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 intermediary method_25400Lnet/minecraft/class_364;method_25400(CI)Zofficial aLeqk;a(CI)Znamed charTypedLnet/minecraft/client/gui/Element;charTyped(CI)Z
-
onClick
public void onClick(double mouseX, double mouseY) - Overrides:
onClickin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_25348Lnet/minecraft/class_339;method_25348(DD)Vofficial aLeox;a(DD)Vnamed onClickLnet/minecraft/client/gui/widget/ClickableWidget;onClick(DD)V
-
playDownSound
- Overrides:
playDownSoundin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_25354Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)Vofficial aLeox;a(Lfyr;)Vnamed playDownSoundLnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V
-
renderButton
- Specified by:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLeox;b(Leop;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
drawSelectionHighlight
- Mappings:
Namespace Name Mixin selector intermediary method_1886Lnet/minecraft/class_342;method_1886(Lnet/minecraft/class_332;IIII)Vofficial aLepj;a(Leop;IIII)Vnamed drawSelectionHighlightLnet/minecraft/client/gui/widget/TextFieldWidget;drawSelectionHighlight(Lnet/minecraft/client/gui/DrawContext;IIII)V
-
setMaxLength
public void setMaxLength(int maxLength) - Mappings:
Namespace Name Mixin selector intermediary method_1880Lnet/minecraft/class_342;method_1880(I)Vofficial mLepj;m(I)Vnamed setMaxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;setMaxLength(I)V
-
getMaxLength
private int getMaxLength()- Mappings:
Namespace Name Mixin selector intermediary method_1861Lnet/minecraft/class_342;method_1861()Iofficial yLepj;y()Inamed getMaxLengthLnet/minecraft/client/gui/widget/TextFieldWidget;getMaxLength()I
-
getCursor
public int getCursor()- Mappings:
Namespace Name Mixin selector intermediary method_1881Lnet/minecraft/class_342;method_1881()Iofficial vLepj;v()Inamed getCursorLnet/minecraft/client/gui/widget/TextFieldWidget;getCursor()I
-
drawsBackground
private boolean drawsBackground()- Mappings:
Namespace Name Mixin selector intermediary method_1851Lnet/minecraft/class_342;method_1851()Zofficial zLepj;z()Znamed drawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground()Z
-
setDrawsBackground
public void setDrawsBackground(boolean drawsBackground) - Mappings:
Namespace Name Mixin selector intermediary method_1858Lnet/minecraft/class_342;method_1858(Z)Vofficial bLepj;b(Z)Vnamed setDrawsBackgroundLnet/minecraft/client/gui/widget/TextFieldWidget;setDrawsBackground(Z)V
-
setEditableColor
public void setEditableColor(int editableColor) - Mappings:
Namespace Name Mixin selector intermediary method_1868Lnet/minecraft/class_342;method_1868(I)Vofficial nLepj;n(I)Vnamed setEditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;setEditableColor(I)V
-
setUneditableColor
public void setUneditableColor(int uneditableColor) - Mappings:
Namespace Name Mixin selector intermediary method_1860Lnet/minecraft/class_342;method_1860(I)Vofficial oLepj;o(I)Vnamed setUneditableColorLnet/minecraft/client/gui/widget/TextFieldWidget;setUneditableColor(I)V
-
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 intermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial a_Leqk;a_(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceElement- Overrides:
setFocusedin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vofficial b_Leqk;b_(Z)Vnamed setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)V
-
isEditable
private boolean isEditable()- Mappings:
Namespace Name Mixin selector intermediary method_20316Lnet/minecraft/class_342;method_20316()Zofficial ALepj;A()Znamed isEditableLnet/minecraft/client/gui/widget/TextFieldWidget;isEditable()Z
-
setEditable
public void setEditable(boolean editable) - Mappings:
Namespace Name Mixin selector intermediary method_1888Lnet/minecraft/class_342;method_1888(Z)Vofficial cLepj;c(Z)Vnamed setEditableLnet/minecraft/client/gui/widget/TextFieldWidget;setEditable(Z)V
-
getInnerWidth
public int getInnerWidth()- Mappings:
Namespace Name Mixin selector intermediary method_1859Lnet/minecraft/class_342;method_1859()Iofficial wLepj;w()Inamed getInnerWidthLnet/minecraft/client/gui/widget/TextFieldWidget;getInnerWidth()I
-
setSelectionEnd
public void setSelectionEnd(int index) - Mappings:
Namespace Name Mixin selector intermediary method_1884Lnet/minecraft/class_342;method_1884(I)Vofficial pLepj;p(I)Vnamed setSelectionEndLnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionEnd(I)V
-
setFocusUnlocked
public void setFocusUnlocked(boolean focusUnlocked) - Mappings:
Namespace Name Mixin selector intermediary method_1856Lnet/minecraft/class_342;method_1856(Z)Vofficial dLepj;d(Z)Vnamed setFocusUnlockedLnet/minecraft/client/gui/widget/TextFieldWidget;setFocusUnlocked(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector intermediary method_1885Lnet/minecraft/class_342;method_1885()Zofficial xLepj;x()Znamed isVisibleLnet/minecraft/client/gui/widget/TextFieldWidget;isVisible()Z
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector intermediary method_1862Lnet/minecraft/class_342;method_1862(Z)Vofficial eLepj;e(Z)Vnamed setVisibleLnet/minecraft/client/gui/widget/TextFieldWidget;setVisible(Z)V
-
setSuggestion
- Mappings:
Namespace Name Mixin selector intermediary method_1887Lnet/minecraft/class_342;method_1887(Ljava/lang/String;)Vofficial cLepj;c(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 intermediary method_1889Lnet/minecraft/class_342;method_1889(I)Iofficial qLepj;q(I)Inamed getCharacterXLnet/minecraft/client/gui/widget/TextFieldWidget;getCharacterX(I)I
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLeox;a(Lesg;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
setPlaceholder
- Mappings:
Namespace Name Mixin selector intermediary method_47404Lnet/minecraft/class_342;method_47404(Lnet/minecraft/class_2561;)Vofficial cLepj;c(Lsw;)Vnamed setPlaceholderLnet/minecraft/client/gui/widget/TextFieldWidget;setPlaceholder(Lnet/minecraft/text/Text;)V
-