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 eyn
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
renderWidget
(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, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, 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
Leyn;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>
Leyn;<init>(Lvf;Lews;)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>
Leyn;<init>(IILvf;Lews;)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>
Leyn;<init>(IIIILvf;Lews;)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 b
Leyn;b(I)Leyn;
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
Leyn;b(F)Leyn;
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 d
Leyn;d()Leyn;
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 e
Leyn;e()Leyn;
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 f
Leyn;f()Leyn;
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;
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lexe;b(Lewu;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
trim
- Mappings:
Namespace Name Mixin selector official a
Leyn;a(Lvf;I)Laua;
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;
-