Package net.minecraft.client.gui.widget
Class TextWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 epc
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 class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
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
(MatrixStack matrices, 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, 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 net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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
Lepc;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>
Lepc;<init>(Ltj;Lenp;)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>
Lepc;<init>(IILtj;Lenp;)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>
Lepc;<init>(IIIILtj;Lenp;)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
Lepc;h(I)Lepc;
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
Lepc;b(F)Lepc;
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
Lepc;e()Lepc;
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
Lepc;f()Lepc;
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
Lepc;g()Lepc;
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
Lenz;b(Lehe;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-