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 named net/minecraft/client/gui/widget/TextWidget
intermediary net/minecraft/class_7842
official fin
-
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 named horizontalAlignment
Lnet/minecraft/client/gui/widget/TextWidget;horizontalAlignment:F
intermediary field_42121
Lnet/minecraft/class_7842;field_42121:F
official a
Lfin;a:F
-
-
Constructor Details
-
TextWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfin;<init>(Lxp;Lfgr;)V
-
TextWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfin;<init>(IILxp;Lfgr;)V
-
TextWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7842;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
official <init>
Lfin;<init>(IIIILxp;Lfgr;)V
-
-
Method Details
-
setTextColor
- Overrides:
setTextColor
in classAbstractTextWidget
- Mappings:
Namespace Name Mixin selector named setTextColor
Lnet/minecraft/client/gui/widget/TextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/TextWidget;
intermediary method_46438
Lnet/minecraft/class_7842;method_46438(I)Lnet/minecraft/class_7842;
official b
Lfin;b(I)Lfin;
-
align
- Mappings:
Namespace Name Mixin selector named align
Lnet/minecraft/client/gui/widget/TextWidget;align(F)Lnet/minecraft/client/gui/widget/TextWidget;
intermediary method_48598
Lnet/minecraft/class_7842;method_48598(F)Lnet/minecraft/class_7842;
official b
Lfin;b(F)Lfin;
-
alignLeft
- Mappings:
Namespace Name Mixin selector named alignLeft
Lnet/minecraft/client/gui/widget/TextWidget;alignLeft()Lnet/minecraft/client/gui/widget/TextWidget;
intermediary method_48596
Lnet/minecraft/class_7842;method_48596()Lnet/minecraft/class_7842;
official c
Lfin;c()Lfin;
-
alignCenter
- Mappings:
Namespace Name Mixin selector named alignCenter
Lnet/minecraft/client/gui/widget/TextWidget;alignCenter()Lnet/minecraft/client/gui/widget/TextWidget;
intermediary method_48597
Lnet/minecraft/class_7842;method_48597()Lnet/minecraft/class_7842;
official e
Lfin;e()Lfin;
-
alignRight
- Mappings:
Namespace Name Mixin selector named alignRight
Lnet/minecraft/client/gui/widget/TextWidget;alignRight()Lnet/minecraft/client/gui/widget/TextWidget;
intermediary method_48599
Lnet/minecraft/class_7842;method_48599()Lnet/minecraft/class_7842;
official f
Lfin;f()Lfin;
-
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
Lfhe;b(Lfgt;IIF)V
-
trim
- Mappings:
Namespace Name Mixin selector named trim
Lnet/minecraft/client/gui/widget/TextWidget;trim(Lnet/minecraft/text/Text;I)Lnet/minecraft/text/OrderedText;
intermediary method_52728
Lnet/minecraft/class_7842;method_52728(Lnet/minecraft/class_2561;I)Lnet/minecraft/class_5481;
official a
Lfin;a(Lxp;I)Layl;
-