Package net.minecraft.client.gui.widget
Class TextWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.AbstractTextWidget
net.minecraft.client.gui.widget.TextWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Mappings:
Namespace Name official eqk
intermediary net/minecraft/class_7842
named net/minecraft/client/gui/widget/TextWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionTextWidget
(int x, int y, int width, int height, Text message, TextRenderer textRenderer) TextWidget
(int width, int height, Text message, TextRenderer textRenderer) TextWidget
(Text message, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate TextWidget
align
(float horizontalAlignment) void
renderButton
(DrawContext context, int mouseX, int mouseY, float delta) setTextColor
(int textColor) Methods inherited from class net.minecraft.client.gui.widget.AbstractTextWidget
appendClickableNarrations, getTextColor, getTextRenderer
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, 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
charTyped, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
horizontalAlignment
private float horizontalAlignment- Mappings:
Namespace Name Mixin selector official a
Leqk;a:F
intermediary field_42121
Lnet/minecraft/class_7842;field_42121:F
named horizontalAlignment
Lnet/minecraft/client/gui/widget/TextWidget;horizontalAlignment:F
-
-
Constructor Details
-
TextWidget
- Mappings:
Namespace Name Mixin selector official <init>
Leqk;<init>(Lsw;Leov;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
-
TextWidget
- Mappings:
Namespace Name Mixin selector official <init>
Leqk;<init>(IILsw;Leov;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
-
TextWidget
- Mappings:
Namespace Name Mixin selector official <init>
Leqk;<init>(IIIILsw;Leov;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
-
-
Method Details
-
setTextColor
- Overrides:
setTextColor
in classAbstractTextWidget
- Mappings:
Namespace Name Mixin selector official h
Leqk;h(I)Leqk;
intermediary method_46438
Lnet/minecraft/class_7842;method_46438(I)Lnet/minecraft/class_7842;
named setTextColor
Lnet/minecraft/client/gui/widget/TextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/TextWidget;
-
align
- Mappings:
Namespace Name Mixin selector official b
Leqk;b(F)Leqk;
intermediary method_48598
Lnet/minecraft/class_7842;method_48598(F)Lnet/minecraft/class_7842;
named align
Lnet/minecraft/client/gui/widget/TextWidget;align(F)Lnet/minecraft/client/gui/widget/TextWidget;
-
alignLeft
- Mappings:
Namespace Name Mixin selector official e
Leqk;e()Leqk;
intermediary method_48596
Lnet/minecraft/class_7842;method_48596()Lnet/minecraft/class_7842;
named alignLeft
Lnet/minecraft/client/gui/widget/TextWidget;alignLeft()Lnet/minecraft/client/gui/widget/TextWidget;
-
alignCenter
- Mappings:
Namespace Name Mixin selector official f
Leqk;f()Leqk;
intermediary method_48597
Lnet/minecraft/class_7842;method_48597()Lnet/minecraft/class_7842;
named alignCenter
Lnet/minecraft/client/gui/widget/TextWidget;alignCenter()Lnet/minecraft/client/gui/widget/TextWidget;
-
alignRight
- Mappings:
Namespace Name Mixin selector official g
Leqk;g()Leqk;
intermediary method_48599
Lnet/minecraft/class_7842;method_48599()Lnet/minecraft/class_7842;
named alignRight
Lnet/minecraft/client/gui/widget/TextWidget;alignRight()Lnet/minecraft/client/gui/widget/TextWidget;
-
renderButton
- Specified by:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lepf;b(Leox;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-