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 etw
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
active, alpha, height, hovered, visible, 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) private OrderedText
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, drawScrollableText, 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, 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
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
Letw;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>
Letw;<init>(Ltl;Lesd;)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>
Letw;<init>(IILtl;Lesd;)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>
Letw;<init>(IIIILtl;Lesd;)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 i
Letw;i(I)Letw;
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
Letw;b(F)Letw;
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
Letw;e()Letw;
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
Letw;f()Letw;
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
Letw;g()Letw;
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
Leso;b(Lesf;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
-
trim
- Mappings:
Namespace Name Mixin selector official a
Letw;a(Ltl;I)Larj;
intermediary method_52728
Lnet/minecraft/class_7842;method_52728(Lnet/minecraft/class_2561;I)Lnet/minecraft/class_5481;
named trim
Lnet/minecraft/client/gui/widget/TextWidget;trim(Lnet/minecraft/text/Text;I)Lnet/minecraft/text/OrderedText;
-