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.TextWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Selectable
- Mappings:
Namespace Name official ekz
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, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_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 TypeMethodDescriptionvoid
void
renderButton
(MatrixStack matrices, int mouseX, int mouseY, float delta) setTextColor
(int textColor) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setPos, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
textColor
private int textColor- Mappings:
Namespace Name Mixin selector official a
Lekz;a:I
intermediary field_40764
Lnet/minecraft/class_7842;field_40764:I
named textColor
Lnet/minecraft/client/gui/widget/TextWidget;textColor:I
-
textRenderer
- Mappings:
Namespace Name Mixin selector official b
Lekz;b:Lekm;
intermediary field_40765
Lnet/minecraft/class_7842;field_40765:Lnet/minecraft/class_327;
named textRenderer
Lnet/minecraft/client/gui/widget/TextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
-
Constructor Details
-
TextWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lekz;<init>(Lss;Lekm;)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>
Lekz;<init>(IILss;Lekm;)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>
Lekz;<init>(IIIILss;Lekm;)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
- Mappings:
Namespace Name Mixin selector official g
Lekz;g(I)Lekz;
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;
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lekw;a(Lenk;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
renderButton
- Overrides:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lekw;b(Leed;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-