Package net.minecraft.client.gui.widget
Class TextFieldWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.TextFieldWidget
@Environment(CLIENT) public class TextFieldWidget extends AbstractButtonWidget implements Drawable, Element
- Mappings:
Namespace Name official dsc
intermediary net/minecraft/class_342
named net/minecraft/client/gui/widget/TextFieldWidget
-
Field Summary
Fields Modifier and Type Field Description private Consumer<String>
changedListener
private boolean
editable
private int
editableColor
private int
firstCharacterIndex
private boolean
focused
private int
focusedTicks
private boolean
focusUnlocked
private int
maxLength
private BiFunction<String,Integer,OrderedText>
renderTextProvider
private boolean
selecting
private int
selectionEnd
private int
selectionStart
private String
suggestion
private String
text
private Predicate<String>
textPredicate
private TextRenderer
textRenderer
private int
uneditableColor
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description TextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, TextFieldWidget copyFrom, Text text)
TextFieldWidget(TextRenderer textRenderer, int x, int y, int width, int height, Text text)
-
Method Summary
Modifier and Type Method Description boolean
changeFocus(boolean lookForwards)
Changes the focusing element by cycling to the next/previous element.boolean
charTyped(char chr, int modifiers)
Callback for when a character input has been captured.private void
drawSelectionHighlight(int x1, int y1, int x2, int y2)
private void
erase(int offset)
void
eraseCharacters(int characterOffset)
void
eraseWords(int wordOffset)
int
getCharacterX(int index)
int
getCursor()
int
getInnerWidth()
private int
getMaxLength()
protected MutableText
getNarrationMessage()
String
getSelectedText()
String
getText()
int
getWordSkipPosition(int wordOffset)
private int
getWordSkipPosition(int wordOffset, int cursorPosition)
private int
getWordSkipPosition(int wordOffset, int cursorPosition, boolean skipOverSpaces)
private boolean
hasBorder()
boolean
isActive()
private boolean
isEditable()
boolean
isMouseOver(double mouseX, double mouseY)
Checks if the mouse position is within the bound of the element.boolean
isVisible()
boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private int
method_27537(int int2)
boolean
mouseClicked(double mouseX, double mouseY, int button)
Callback for when a mouse button down event has been captured.void
moveCursor(int offset)
private void
onChanged(String newText)
protected void
onFocusedChanged(boolean bool)
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
setChangedListener(Consumer<String> changedListener)
void
setCursor(int cursor)
void
setCursorToEnd()
void
setCursorToStart()
void
setEditable(boolean editable)
void
setEditableColor(int color)
void
setFocusUnlocked(boolean focusUnlocked)
void
setHasBorder(boolean hasBorder)
void
setMaxLength(int maxLength)
void
setRenderTextProvider(BiFunction<String,Integer,OrderedText> renderTextProvider)
void
setSelected(boolean selected)
void
setSelectionEnd(int int2)
void
setSelectionStart(int cursor)
void
setSuggestion(String suggestion)
void
setText(String text)
void
setTextPredicate(Predicate<String> textPredicate)
void
setUneditableColor(int color)
void
setVisible(boolean visible)
void
setX(int x)
void
tick()
void
write(String string)
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseDragged, mouseReleased, narrate, onClick, onDrag, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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
keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
textRenderer
- Mappings:
Namespace Name Mixin selector official a
Ldsc;a:Ldrf;
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
- Mappings:
Namespace Name Mixin selector official b
Ldsc;b: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 c
Ldsc;c:I
intermediary field_2108
Lnet/minecraft/class_342;field_2108:I
named maxLength
Lnet/minecraft/client/gui/widget/TextFieldWidget;maxLength:I
-
focusedTicks
private int focusedTicks- Mappings:
Namespace Name Mixin selector official d
Ldsc;d:I
intermediary field_2107
Lnet/minecraft/class_342;field_2107:I
named focusedTicks
Lnet/minecraft/client/gui/widget/TextFieldWidget;focusedTicks:I
-
focused
private boolean focused- Mappings:
Namespace Name Mixin selector official e
Ldsc;e:Z
intermediary field_2095
Lnet/minecraft/class_342;field_2095:Z
named focused
Lnet/minecraft/client/gui/widget/TextFieldWidget;focused:Z
-
focusUnlocked
private boolean focusUnlocked- Mappings:
Namespace Name Mixin selector official s
Ldsc;s: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 t
Ldsc;t:Z
intermediary field_2094
Lnet/minecraft/class_342;field_2094:Z
named editable
Lnet/minecraft/client/gui/widget/TextFieldWidget;editable:Z
-
selecting
private boolean selecting- Mappings:
Namespace Name Mixin selector official u
Ldsc;u:Z
intermediary field_17037
Lnet/minecraft/class_342;field_17037:Z
named selecting
Lnet/minecraft/client/gui/widget/TextFieldWidget;selecting:Z
-
firstCharacterIndex
private int firstCharacterIndex- Mappings:
Namespace Name Mixin selector official v
Ldsc;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
Ldsc;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
Ldsc;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
Ldsc;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
Ldsc;z:I
intermediary field_2098
Lnet/minecraft/class_342;field_2098:I
named uneditableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;uneditableColor:I
-
suggestion
- Mappings:
Namespace Name Mixin selector official A
Ldsc;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
- Mappings:
Namespace Name Mixin selector official B
Ldsc;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
- Mappings:
Namespace Name Mixin selector official C
Ldsc;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
- Mappings:
Namespace Name Mixin selector official D
Ldsc;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;
-
-
Constructor Details
-
TextFieldWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldsc;<init>(Ldrf;IIIILoi;)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 TextFieldWidget copyFrom, Text text)- Mappings:
Namespace Name Mixin selector official <init>
Ldsc;<init>(Ldrf;IIIILdsc;Loi;)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
- Mappings:
Namespace Name Mixin selector official a
Ldsc;a(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
- Mappings:
Namespace Name Mixin selector official a
Ldsc;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
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official a
Ldsc;a()V
intermediary method_1865
Lnet/minecraft/class_342;method_1865()V
named tick
Lnet/minecraft/client/gui/widget/TextFieldWidget;tick()V
-
getNarrationMessage
- Overrides:
getNarrationMessage
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official c
Ldrs;c()Loo;
intermediary method_25360
Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
named getNarrationMessage
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
setText
- Mappings:
Namespace Name Mixin selector official a
Ldsc;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
- Mappings:
Namespace Name Mixin selector official b
Ldsc;b()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
- Mappings:
Namespace Name Mixin selector official d
Ldsc;d()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
- Mappings:
Namespace Name Mixin selector official a
Ldsc;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
- Mappings:
Namespace Name Mixin selector official b
Ldsc;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
- Mappings:
Namespace Name Mixin selector official d
Ldsc;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
Ldsc;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 e
Ldsc;e(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 f
Ldsc;f(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 g
Ldsc;g(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
Ldsc;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
Ldsc;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)- Mappings:
Namespace Name Mixin selector official h
Ldsc;h(I)V
intermediary method_1855
Lnet/minecraft/class_342;method_1855(I)V
named moveCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;moveCursor(I)V
-
method_27537
private int method_27537(int int2)- Mappings:
Namespace Name Mixin selector official r
Ldsc;r(I)I
intermediary method_27537
Lnet/minecraft/class_342;method_27537(I)I
named method_27537
Lnet/minecraft/client/gui/widget/TextFieldWidget;method_27537(I)I
-
setCursor
public void setCursor(int cursor)- Mappings:
Namespace Name Mixin selector official i
Ldsc;i(I)V
intermediary method_1883
Lnet/minecraft/class_342;method_1883(I)V
named setCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursor(I)V
-
setSelectionStart
public void setSelectionStart(int cursor)- Mappings:
Namespace Name Mixin selector official j
Ldsc;j(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()- Mappings:
Namespace Name Mixin selector official k
Ldsc;k()V
intermediary method_1870
Lnet/minecraft/class_342;method_1870()V
named setCursorToStart
Lnet/minecraft/client/gui/widget/TextFieldWidget;setCursorToStart()V
-
setCursorToEnd
public void setCursorToEnd()- Mappings:
Namespace Name Mixin selector official l
Ldsc;l()V
intermediary method_1872
Lnet/minecraft/class_342;method_1872()V
named setCursorToEnd
Lnet/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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- 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:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;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 m
Ldsc;m()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 inGLFW
class.- Specified by:
charTyped
in interfaceElement
- 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:
Keyboard.onChar(long, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(CI)Z
intermediary method_25400
Lnet/minecraft/class_364;method_25400(CI)Z
named charTyped
Lnet/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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Overrides:
mouseClicked
in classAbstractButtonWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseButton(long, int, int, int)
,GLFW.GLFW_MOUSE_BUTTON_1
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
setSelected
public void setSelected(boolean selected)- Mappings:
Namespace Name Mixin selector official e
Ldsc;e(Z)V
intermediary method_1876
Lnet/minecraft/class_342;method_1876(Z)V
named setSelected
Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelected(Z)V
-
renderButton
- Overrides:
renderButton
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawSelectionHighlight
private void drawSelectionHighlight(int x1, int y1, int x2, int y2)- Mappings:
Namespace Name Mixin selector official a
Ldsc;a(IIII)V
intermediary method_1886
Lnet/minecraft/class_342;method_1886(IIII)V
named drawSelectionHighlight
Lnet/minecraft/client/gui/widget/TextFieldWidget;drawSelectionHighlight(IIII)V
-
setMaxLength
public void setMaxLength(int maxLength)- Mappings:
Namespace Name Mixin selector official k
Ldsc;k(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 q
Ldsc;q()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 n
Ldsc;n()I
intermediary method_1881
Lnet/minecraft/class_342;method_1881()I
named getCursor
Lnet/minecraft/client/gui/widget/TextFieldWidget;getCursor()I
-
hasBorder
private boolean hasBorder()- Mappings:
Namespace Name Mixin selector official r
Ldsc;r()Z
intermediary method_1851
Lnet/minecraft/class_342;method_1851()Z
named hasBorder
Lnet/minecraft/client/gui/widget/TextFieldWidget;hasBorder()Z
-
setHasBorder
public void setHasBorder(boolean hasBorder)- Mappings:
Namespace Name Mixin selector official f
Ldsc;f(Z)V
intermediary method_1858
Lnet/minecraft/class_342;method_1858(Z)V
named setHasBorder
Lnet/minecraft/client/gui/widget/TextFieldWidget;setHasBorder(Z)V
-
setEditableColor
public void setEditableColor(int color)- Mappings:
Namespace Name Mixin selector official l
Ldsc;l(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 color)- Mappings:
Namespace Name Mixin selector official m
Ldsc;m(I)V
intermediary method_1860
Lnet/minecraft/class_342;method_1860(I)V
named setUneditableColor
Lnet/minecraft/client/gui/widget/TextFieldWidget;setUneditableColor(I)V
-
changeFocus
public boolean changeFocus(boolean lookForwards)Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- Specified by:
changeFocus
in interfaceElement
- Overrides:
changeFocus
in classAbstractButtonWidget
- Parameters:
lookForwards
-true
to cycle forwards, otherwise cycle backwards- Returns:
true
to indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official c_
Ldst;c_(Z)Z
intermediary method_25407
Lnet/minecraft/class_364;method_25407(Z)Z
named changeFocus
Lnet/minecraft/client/gui/Element;changeFocus(Z)Z
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOver
in interfaceElement
- Overrides:
isMouseOver
in classAbstractButtonWidget
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
- Mappings:
Namespace Name Mixin selector official b
Ldst;b(DD)Z
intermediary method_25405
Lnet/minecraft/class_364;method_25405(DD)Z
named isMouseOver
Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
onFocusedChanged
protected void onFocusedChanged(boolean bool)- Overrides:
onFocusedChanged
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official c
Ldrs;c(Z)V
intermediary method_25363
Lnet/minecraft/class_339;method_25363(Z)V
named onFocusedChanged
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;onFocusedChanged(Z)V
-
isEditable
private boolean isEditable()- Mappings:
Namespace Name Mixin selector official s
Ldsc;s()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 g
Ldsc;g(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 o
Ldsc;o()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 int2)- Mappings:
Namespace Name Mixin selector official n
Ldsc;n(I)V
intermediary method_1884
Lnet/minecraft/class_342;method_1884(I)V
named setSelectionEnd
Lnet/minecraft/client/gui/widget/TextFieldWidget;setSelectionEnd(I)V
-
setFocusUnlocked
public void setFocusUnlocked(boolean focusUnlocked)- Mappings:
Namespace Name Mixin selector official h
Ldsc;h(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 p
Ldsc;p()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 i
Ldsc;i(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
- Mappings:
Namespace Name Mixin selector official c
Ldsc;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 o
Ldsc;o(I)I
intermediary method_1889
Lnet/minecraft/class_342;method_1889(I)I
named getCharacterX
Lnet/minecraft/client/gui/widget/TextFieldWidget;getCharacterX(I)I
-
setX
public void setX(int x)- Mappings:
Namespace Name Mixin selector official p
Ldsc;p(I)V
intermediary method_16872
Lnet/minecraft/class_342;method_16872(I)V
named setX
Lnet/minecraft/client/gui/widget/TextFieldWidget;setX(I)V
-