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 named net/minecraft/client/gui/widget/TextFieldWidget
intermediary net/minecraft/class_342
official fon
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private boolean
private boolean
private int
static final int
static final int
private static final int
private static final int
private int
The index of the leftmost character that is rendered on a screen.private boolean
private static final String
private long
private int
private BiFunction
<String, Integer, OrderedText> private int
private int
private String
private final TextRenderer
private static final ButtonTextures
private int
private static final int
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionTextFieldWidget
(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) TextFieldWidget
(TextRenderer textRenderer, int width, int height, Text text) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
charTyped
(char chr, int modifiers) Callback for when a character input has been captured.boolean
private void
drawSelectionHighlight
(DrawContext context, int x1, int y1, int x2, int y2) private void
erase
(int offset) void
eraseCharacters
(int characterOffset) void
eraseCharactersTo
(int position) void
eraseWords
(int wordOffset) int
getCharacterX
(int index) int
private int
getCursorPosWithOffset
(int offset) int
private int
protected MutableText
getText()
int
getWordSkipPosition
(int wordOffset) private int
getWordSkipPosition
(int wordOffset, int cursorPosition) private int
getWordSkipPosition
(int wordOffset, int cursorPosition, boolean skipOverSpaces) boolean
isActive()
private boolean
boolean
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.void
moveCursor
(int offset, boolean shiftKeyPressed) private void
void
onClick
(double mouseX, double mouseY) void
playDownSound
(SoundManager soundManager) void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) void
setChangedListener
(Consumer<String> changedListener) void
setCursor
(int cursor, boolean shiftKeyPressed) void
setCursorToEnd
(boolean shiftKeyPressed) void
setCursorToStart
(boolean shiftKeyPressed) void
setDrawsBackground
(boolean drawsBackground) void
setEditable
(boolean editable) void
setEditableColor
(int editableColor) void
setFocused
(boolean focused) void
setFocusUnlocked
(boolean focusUnlocked) void
setMaxLength
(int maxLength) void
setPlaceholder
(Text placeholder) void
setRenderTextProvider
(BiFunction<String, Integer, OrderedText> renderTextProvider) void
setSelectionEnd
(int index) void
setSelectionStart
(int cursor) void
setSuggestion
(@Nullable String suggestion) void
void
setTextPredicate
(Predicate<String> textPredicate) void
setUneditableColor
(int uneditableColor) void
setVisible
(boolean visible) private void
updateFirstCharacterIndex
(int cursor) void
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playClickSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
TEXTURES
- Mappings:
Namespace Name Mixin selector named TEXTURES
Lnet/minecraft/client/gui/widget/TextFieldWidget;TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
intermediary field_45914
Lnet/minecraft/class_342;field_45914:Lnet/minecraft/class_8666;
official d
Lfon;d:Lfps;
-
field_32194
public static final int field_32194- See Also:
- Mappings:
Namespace Name Mixin selector named field_32194
Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32194:I
intermediary field_32194
Lnet/minecraft/class_342;field_32194:I
official a
Lfon;a:I
-
field_32195
public static final int field_32195- See Also:
- Mappings:
Namespace Name Mixin selector named field_32195
Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32195:I
intermediary field_32195
Lnet/minecraft/class_342;field_32195:I
official b
Lfon;b:I
-
field_32197
private static final int field_32197- See Also:
- Mappings:
Namespace Name Mixin selector named field_32197
Lnet/minecraft/client/gui/widget/TextFieldWidget;field_32197:I
intermediary field_32197
Lnet/minecraft/class_342;field_32197:I
official e
Lfon;e:I
-
VERTICAL_CURSOR_COLOR
private static final int VERTICAL_CURSOR_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_CURSOR_COLOR
Lnet/minecraft/client/gui/widget/TextFieldWidget;VERTICAL_CURSOR_COLOR:I
intermediary field_32198
Lnet/minecraft/class_342;field_32198:I
official f
Lfon;f:I
-
HORIZONTAL_CURSOR
- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_CURSOR
Lnet/minecraft/client/gui/widget/TextFieldWidget;HORIZONTAL_CURSOR:Ljava/lang/String;
intermediary field_32199
Lnet/minecraft/class_342;field_32199:Ljava/lang/String;
official m
Lfon;m:Ljava/lang/String;
-
DEFAULT_EDITABLE_COLOR
public static final int DEFAULT_EDITABLE_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_EDITABLE_COLOR
Lnet/minecraft/client/gui/widget/TextFieldWidget;DEFAULT_EDITABLE_COLOR:I
intermediary field_32196
Lnet/minecraft/class_342;field_32196:I
official c
Lfon;c:I
-
field_45354
private static final int field_45354- See Also:
- Mappings:
Namespace Name Mixin selector named field_45354
Lnet/minecraft/client/gui/widget/TextFieldWidget;field_45354:I
intermediary field_45354
Lnet/minecraft/class_342;field_45354:I
official n
Lfon;n:I
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRenderer
Lnet/minecraft/client/gui/widget/TextFieldWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
intermediary field_2105
Lnet/minecraft/class_342;field_2105:Lnet/minecraft/class_327;
official o
Lfon;o:Lfnp;
-
text
- Mappings:
Namespace Name Mixin selector named text
Lnet/minecraft/client/gui/widget/TextFieldWidget;text:Ljava/lang/String;
intermediary field_2092
Lnet/minecraft/class_342;field_2092:Ljava/lang/String;
official p
Lfon;p:Ljava/lang/String;
-
maxLength
private int maxLength- Mappings:
Namespace Name Mixin selector named maxLength
Lnet/minecraft/client/gui/widget/TextFieldWidget;maxLength:I
intermediary field_2108
Lnet/minecraft/class_342;field_2108:I
official q
Lfon;q:I
-
drawsBackground
private boolean drawsBackground- Mappings:
Namespace Name Mixin selector named drawsBackground
Lnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground:Z
intermediary field_2095
Lnet/minecraft/class_342;field_2095:Z
official r
Lfon;r:Z
-
focusUnlocked
private boolean focusUnlocked- Mappings:
Namespace Name Mixin selector named focusUnlocked
Lnet/minecraft/client/gui/widget/TextFieldWidget;focusUnlocked:Z
intermediary field_2096
Lnet/minecraft/class_342;field_2096:Z
official s
Lfon;s:Z
-
editable
private boolean editable- Mappings:
Namespace Name Mixin selector named editable
Lnet/minecraft/client/gui/widget/TextFieldWidget;editable:Z
intermediary field_2094
Lnet/minecraft/class_342;field_2094:Z
official u
Lfon;u:Z
-
firstCharacterIndex
private int firstCharacterIndexThe index of the leftmost character that is rendered on a screen.- Mappings:
Namespace Name Mixin selector named firstCharacterIndex
Lnet/minecraft/client/gui/widget/TextFieldWidget;firstCharacterIndex:I
intermediary field_2103
Lnet/minecraft/class_342;field_2103:I
official v
Lfon;v:I
-
selectionStart
private int selectionStart- Mappings:
Namespace Name Mixin selector named selectionStart
Lnet/minecraft/client/gui/widget/TextFieldWidget;selectionStart:I
intermediary field_2102
Lnet/minecraft/class_342;field_2102:I
official w
Lfon;w:I
-
selectionEnd
private int selectionEnd- Mappings:
Namespace Name Mixin selector named selectionEnd
Lnet/minecraft/client/gui/widget/TextFieldWidget;selectionEnd:I
intermediary field_2101
Lnet/minecraft/class_342;field_2101:I
official x
Lfon;x:I
-
editableColor
private int editableColor- Mappings:
Namespace Name Mixin selector named editableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;editableColor:I
intermediary field_2100
Lnet/minecraft/class_342;field_2100:I
official y
Lfon;y:I
-
uneditableColor
private int uneditableColor- Mappings:
Namespace Name Mixin selector named uneditableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;uneditableColor:I
intermediary field_2098
Lnet/minecraft/class_342;field_2098:I
official z
Lfon;z:I
-
suggestion
- Mappings:
Namespace Name Mixin selector named suggestion
Lnet/minecraft/client/gui/widget/TextFieldWidget;suggestion:Ljava/lang/String;
intermediary field_2106
Lnet/minecraft/class_342;field_2106:Ljava/lang/String;
official A
Lfon;A:Ljava/lang/String;
-
changedListener
- Mappings:
Namespace Name Mixin selector named changedListener
Lnet/minecraft/client/gui/widget/TextFieldWidget;changedListener:Ljava/util/function/Consumer;
intermediary field_2088
Lnet/minecraft/class_342;field_2088:Ljava/util/function/Consumer;
official B
Lfon;B:Ljava/util/function/Consumer;
-
textPredicate
- Mappings:
Namespace Name Mixin selector named textPredicate
Lnet/minecraft/client/gui/widget/TextFieldWidget;textPredicate:Ljava/util/function/Predicate;
intermediary field_2104
Lnet/minecraft/class_342;field_2104:Ljava/util/function/Predicate;
official C
Lfon;C:Ljava/util/function/Predicate;
-
renderTextProvider
- Mappings:
Namespace Name Mixin selector named renderTextProvider
Lnet/minecraft/client/gui/widget/TextFieldWidget;renderTextProvider:Ljava/util/function/BiFunction;
intermediary field_2099
Lnet/minecraft/class_342;field_2099:Ljava/util/function/BiFunction;
official D
Lfon;D:Ljava/util/function/BiFunction;
-
placeholder
- Mappings:
Namespace Name Mixin selector named placeholder
Lnet/minecraft/client/gui/widget/TextFieldWidget;placeholder:Lnet/minecraft/text/Text;
intermediary field_41100
Lnet/minecraft/class_342;field_41100:Lnet/minecraft/class_2561;
official E
Lfon;E:Lxv;
-
lastSwitchFocusTime
private long lastSwitchFocusTime- Mappings:
Namespace Name Mixin selector named lastSwitchFocusTime
Lnet/minecraft/client/gui/widget/TextFieldWidget;lastSwitchFocusTime:J
intermediary field_45352
Lnet/minecraft/class_342;field_45352:J
official F
Lfon;F:J
-
-
Constructor Details
-
TextFieldWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextFieldWidget;<init>(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IILnet/minecraft/class_2561;)V
official <init>
Lfon;<init>(Lfnp;IILxv;)V
-
TextFieldWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextFieldWidget;<init>(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/text/Text;)V
intermediary <init>
Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;)V
official <init>
Lfon;<init>(Lfnp;IIIILxv;)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 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
intermediary <init>
Lnet/minecraft/class_342;<init>(Lnet/minecraft/class_327;IIIILnet/minecraft/class_342;Lnet/minecraft/class_2561;)V
official <init>
Lfon;<init>(Lfnp;IIIILfon;Lxv;)V
-
-
Method Details
-
setChangedListener
- Mappings:
Namespace Name Mixin selector named setChangedListener
Lnet/minecraft/client/gui/widget/TextFieldWidget;setChangedListener(Ljava/util/function/Consumer;)V
intermediary method_1863
Lnet/minecraft/class_342;method_1863(Ljava/util/function/Consumer;)V
official b
Lfon;b(Ljava/util/function/Consumer;)V
-
setRenderTextProvider
- Mappings:
Namespace Name Mixin selector named setRenderTextProvider
Lnet/minecraft/client/gui/widget/TextFieldWidget;setRenderTextProvider(Ljava/util/function/BiFunction;)V
intermediary method_1854
Lnet/minecraft/class_342;method_1854(Ljava/util/function/BiFunction;)V
official a
Lfon;a(Ljava/util/function/BiFunction;)V
-
getNarrationMessage
- Overrides:
getNarrationMessage
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named getNarrationMessage
Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
intermediary method_25360
Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
official aR_
Lfoc;aR_()Lyj;
-
setText
- Mappings:
Namespace Name Mixin selector named setText
Lnet/minecraft/client/gui/widget/TextFieldWidget;setText(Ljava/lang/String;)V
intermediary method_1852
Lnet/minecraft/class_342;method_1852(Ljava/lang/String;)V
official a
Lfon;a(Ljava/lang/String;)V
-
getText
- Mappings:
Namespace Name Mixin selector named getText
Lnet/minecraft/client/gui/widget/TextFieldWidget;getText()Ljava/lang/String;
intermediary method_1882
Lnet/minecraft/class_342;method_1882()Ljava/lang/String;
official a
Lfon;a()Ljava/lang/String;
-
getSelectedText
- Mappings:
Namespace Name Mixin selector named getSelectedText
Lnet/minecraft/client/gui/widget/TextFieldWidget;getSelectedText()Ljava/lang/String;
intermediary method_1866
Lnet/minecraft/class_342;method_1866()Ljava/lang/String;
official b
Lfon;b()Ljava/lang/String;
-
setTextPredicate
- Mappings:
Namespace Name Mixin selector named setTextPredicate
Lnet/minecraft/client/gui/widget/TextFieldWidget;setTextPredicate(Ljava/util/function/Predicate;)V
intermediary method_1890
Lnet/minecraft/class_342;method_1890(Ljava/util/function/Predicate;)V
official a
Lfon;a(Ljava/util/function/Predicate;)V
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/client/gui/widget/TextFieldWidget;write(Ljava/lang/String;)V
intermediary method_1867
Lnet/minecraft/class_342;method_1867(Ljava/lang/String;)V
official b
Lfon;b(Ljava/lang/String;)V
-
onChanged
- Mappings:
Namespace Name Mixin selector named onChanged
Lnet/minecraft/client/gui/widget/TextFieldWidget;onChanged(Ljava/lang/String;)V
intermediary method_1874
Lnet/minecraft/class_342;method_1874(Ljava/lang/String;)V
official d
Lfon;d(Ljava/lang/String;)V
-
erase
private void erase(int offset) - Mappings:
Namespace Name Mixin selector named erase
Lnet/minecraft/client/gui/widget/TextFieldWidget;erase(I)V
intermediary method_16873
Lnet/minecraft/class_342;method_16873(I)V
official q
Lfon;q(I)V
-
eraseWords
public void eraseWords(int wordOffset) - Mappings:
Namespace Name Mixin selector named eraseWords
Lnet/minecraft/client/gui/widget/TextFieldWidget;eraseWords(I)V
intermediary method_1877
Lnet/minecraft/class_342;method_1877(I)V
official a
Lfon;a(I)V
-
eraseCharacters
public void eraseCharacters(int characterOffset) - Mappings:
Namespace Name Mixin selector named eraseCharacters
Lnet/minecraft/client/gui/widget/TextFieldWidget;eraseCharacters(I)V
intermediary method_1878
Lnet/minecraft/class_342;method_1878(I)V
official b
Lfon;b(I)V
-
eraseCharactersTo
public void eraseCharactersTo(int position) - Mappings:
Namespace Name Mixin selector named eraseCharactersTo
Lnet/minecraft/client/gui/widget/TextFieldWidget;eraseCharactersTo(I)V
intermediary method_55506
Lnet/minecraft/class_342;method_55506(I)V
official c
Lfon;c(I)V
-
getWordSkipPosition
public int getWordSkipPosition(int wordOffset) - Mappings:
Namespace Name Mixin selector named getWordSkipPosition
Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(I)I
intermediary method_1853
Lnet/minecraft/class_342;method_1853(I)I
official d
Lfon;d(I)I
-
getWordSkipPosition
private int getWordSkipPosition(int wordOffset, int cursorPosition) - Mappings:
Namespace Name Mixin selector named getWordSkipPosition
Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(II)I
intermediary method_1869
Lnet/minecraft/class_342;method_1869(II)I
official a
Lfon;a(II)I
-
getWordSkipPosition
private int getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces) - Mappings:
Namespace Name Mixin selector named getWordSkipPosition
Lnet/minecraft/client/gui/widget/TextFieldWidget;getWordSkipPosition(IIZ)I
intermediary method_1864
Lnet/minecraft/class_342;method_1864(IIZ)I
official a
Lfon;a(IIZ)I
-
moveCursor
public void moveCursor(int offset, boolean shiftKeyPressed) - Mappings:
Namespace Name Mixin selector named moveCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;moveCursor(IZ)V
intermediary method_1855
Lnet/minecraft/class_342;method_1855(IZ)V
official a
Lfon;a(IZ)V
-
getCursorPosWithOffset
private int getCursorPosWithOffset(int offset) - Mappings:
Namespace Name Mixin selector named getCursorPosWithOffset
Lnet/minecraft/client/gui/widget/TextFieldWidget;getCursorPosWithOffset(I)I
intermediary method_27537
Lnet/minecraft/class_342;method_27537(I)I
official r
Lfon;r(I)I
-
setCursor
public void setCursor(int cursor, boolean shiftKeyPressed) - Mappings:
Namespace Name Mixin selector named setCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursor(IZ)V
intermediary method_1883
Lnet/minecraft/class_342;method_1883(IZ)V
official b
Lfon;b(IZ)V
-
setSelectionStart
public void setSelectionStart(int cursor) - Mappings:
Namespace Name Mixin selector named setSelectionStart
Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionStart(I)V
intermediary method_1875
Lnet/minecraft/class_342;method_1875(I)V
official e
Lfon;e(I)V
-
setCursorToStart
public void setCursorToStart(boolean shiftKeyPressed) - Mappings:
Namespace Name Mixin selector named setCursorToStart
Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToStart(Z)V
intermediary method_1870
Lnet/minecraft/class_342;method_1870(Z)V
official b
Lfon;b(Z)V
-
setCursorToEnd
public void setCursorToEnd(boolean shiftKeyPressed) - Mappings:
Namespace Name Mixin selector named setCursorToEnd
Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToEnd(Z)V
intermediary method_1872
Lnet/minecraft/class_342;method_1872(Z)V
official c
Lfon;c(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 inGLFW
class.- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- 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:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfqc;a(III)Z
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector named isActive
Lnet/minecraft/client/gui/widget/TextFieldWidget;isActive()Z
intermediary method_20315
Lnet/minecraft/class_342;method_20315()Z
official c
Lfon;c()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 inGLFW
class.- Parameters:
chr
- the captured charactermodifiers
- 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 named charTyped
Lnet/minecraft/client/gui/Element;charTyped(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
official a
Lfqc;a(CI)Z
-
onClick
public void onClick(double mouseX, double mouseY) - Overrides:
onClick
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named onClick
Lnet/minecraft/client/gui/widget/ClickableWidget;onClick(DD)V
intermediary method_25348
Lnet/minecraft/class_339;method_25348(DD)V
official a
Lfoc;a(DD)V
-
playDownSound
- Overrides:
playDownSound
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named playDownSound
Lnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V
intermediary method_25354
Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V
official a
Lfoc;a(Lhgm;)V
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfoc;b(Lfnr;IIF)V
-
drawSelectionHighlight
- Mappings:
Namespace Name Mixin selector named drawSelectionHighlight
Lnet/minecraft/client/gui/widget/TextFieldWidget;drawSelectionHighlight(Lnet/minecraft/client/gui/DrawContext;IIII)V
intermediary method_1886
Lnet/minecraft/class_342;method_1886(Lnet/minecraft/class_332;IIII)V
official a
Lfon;a(Lfnr;IIII)V
-
setMaxLength
public void setMaxLength(int maxLength) - Mappings:
Namespace Name Mixin selector named setMaxLength
Lnet/minecraft/client/gui/widget/TextFieldWidget;setMaxLength(I)V
intermediary method_1880
Lnet/minecraft/class_342;method_1880(I)V
official f
Lfon;f(I)V
-
getMaxLength
private int getMaxLength()- Mappings:
Namespace Name Mixin selector named getMaxLength
Lnet/minecraft/client/gui/widget/TextFieldWidget;getMaxLength()I
intermediary method_1861
Lnet/minecraft/class_342;method_1861()I
official j
Lfon;j()I
-
getCursor
public int getCursor()- Mappings:
Namespace Name Mixin selector named getCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;getCursor()I
intermediary method_1881
Lnet/minecraft/class_342;method_1881()I
official e
Lfon;e()I
-
drawsBackground
public boolean drawsBackground()- Mappings:
Namespace Name Mixin selector named drawsBackground
Lnet/minecraft/client/gui/widget/TextFieldWidget;drawsBackground()Z
intermediary method_1851
Lnet/minecraft/class_342;method_1851()Z
official g
Lfon;g()Z
-
setDrawsBackground
public void setDrawsBackground(boolean drawsBackground) - Mappings:
Namespace Name Mixin selector named setDrawsBackground
Lnet/minecraft/client/gui/widget/TextFieldWidget;setDrawsBackground(Z)V
intermediary method_1858
Lnet/minecraft/class_342;method_1858(Z)V
official d
Lfon;d(Z)V
-
setEditableColor
public void setEditableColor(int editableColor) - Mappings:
Namespace Name Mixin selector named setEditableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;setEditableColor(I)V
intermediary method_1868
Lnet/minecraft/class_342;method_1868(I)V
official g
Lfon;g(I)V
-
setUneditableColor
public void setUneditableColor(int uneditableColor) - Mappings:
Namespace Name Mixin selector named setUneditableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;setUneditableColor(I)V
intermediary method_1860
Lnet/minecraft/class_342;method_1860(I)V
official n
Lfon;n(I)V
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocused
in interfaceElement
- Overrides:
setFocused
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named setFocused
Lnet/minecraft/client/gui/Element;setFocused(Z)V
intermediary method_25365
Lnet/minecraft/class_364;method_25365(Z)V
official a
Lfqc;a(Z)V
-
isEditable
private boolean isEditable()- Mappings:
Namespace Name Mixin selector named isEditable
Lnet/minecraft/client/gui/widget/TextFieldWidget;isEditable()Z
intermediary method_20316
Lnet/minecraft/class_342;method_20316()Z
official k
Lfon;k()Z
-
setEditable
public void setEditable(boolean editable) - Mappings:
Namespace Name Mixin selector named setEditable
Lnet/minecraft/client/gui/widget/TextFieldWidget;setEditable(Z)V
intermediary method_1888
Lnet/minecraft/class_342;method_1888(Z)V
official e
Lfon;e(Z)V
-
getInnerWidth
public int getInnerWidth()- Mappings:
Namespace Name Mixin selector named getInnerWidth
Lnet/minecraft/client/gui/widget/TextFieldWidget;getInnerWidth()I
intermediary method_1859
Lnet/minecraft/class_342;method_1859()I
official h
Lfon;h()I
-
setSelectionEnd
public void setSelectionEnd(int index) - Mappings:
Namespace Name Mixin selector named setSelectionEnd
Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionEnd(I)V
intermediary method_1884
Lnet/minecraft/class_342;method_1884(I)V
official o
Lfon;o(I)V
-
updateFirstCharacterIndex
private void updateFirstCharacterIndex(int cursor) - Mappings:
Namespace Name Mixin selector named updateFirstCharacterIndex
Lnet/minecraft/client/gui/widget/TextFieldWidget;updateFirstCharacterIndex(I)V
intermediary method_52719
Lnet/minecraft/class_342;method_52719(I)V
official s
Lfon;s(I)V
-
setFocusUnlocked
public void setFocusUnlocked(boolean focusUnlocked) - Mappings:
Namespace Name Mixin selector named setFocusUnlocked
Lnet/minecraft/client/gui/widget/TextFieldWidget;setFocusUnlocked(Z)V
intermediary method_1856
Lnet/minecraft/class_342;method_1856(Z)V
official f
Lfon;f(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector named isVisible
Lnet/minecraft/client/gui/widget/TextFieldWidget;isVisible()Z
intermediary method_1885
Lnet/minecraft/class_342;method_1885()Z
official i
Lfon;i()Z
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector named setVisible
Lnet/minecraft/client/gui/widget/TextFieldWidget;setVisible(Z)V
intermediary method_1862
Lnet/minecraft/class_342;method_1862(Z)V
official g
Lfon;g(Z)V
-
setSuggestion
- Mappings:
Namespace Name Mixin selector named setSuggestion
Lnet/minecraft/client/gui/widget/TextFieldWidget;setSuggestion(Ljava/lang/String;)V
intermediary method_1887
Lnet/minecraft/class_342;method_1887(Ljava/lang/String;)V
official c
Lfon;c(Ljava/lang/String;)V
-
getCharacterX
public int getCharacterX(int index) - Mappings:
Namespace Name Mixin selector named getCharacterX
Lnet/minecraft/client/gui/widget/TextFieldWidget;getCharacterX(I)I
intermediary method_1889
Lnet/minecraft/class_342;method_1889(I)I
official p
Lfon;p(I)I
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfoc;a(Lfsc;)V
-
setPlaceholder
- Mappings:
Namespace Name Mixin selector named setPlaceholder
Lnet/minecraft/client/gui/widget/TextFieldWidget;setPlaceholder(Lnet/minecraft/text/Text;)V
intermediary method_47404
Lnet/minecraft/class_342;method_47404(Lnet/minecraft/class_2561;)V
official c
Lfon;c(Lxv;)V
-