Class AbstractTextWidget

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.AbstractTextWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
MultilineTextWidget, TextWidget

@Environment(CLIENT) public abstract class AbstractTextWidget extends ClickableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/AbstractTextWidget
intermediary net/minecraft/class_8130
official fhd
  • Field Details

    • textRenderer

      private final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      named textRenderer Lnet/minecraft/client/gui/widget/AbstractTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
      intermediary field_42483 Lnet/minecraft/class_8130;field_42483:Lnet/minecraft/class_327;
      official a Lfhd;a:Lfgr;
    • textColor

      private int textColor
      Mappings:
      Namespace Name Mixin selector
      named textColor Lnet/minecraft/client/gui/widget/AbstractTextWidget;textColor:I
      intermediary field_42484 Lnet/minecraft/class_8130;field_42484:I
      official b Lfhd;b:I
  • Constructor Details

    • AbstractTextWidget

      public AbstractTextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/AbstractTextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_8130;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
      official <init> Lfhd;<init>(IIIILxp;Lfgr;)V
  • Method Details

    • appendClickableNarrations

      protected void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      official a Lfhe;a(Lflc;)V
    • setTextColor

      public AbstractTextWidget setTextColor(int textColor)
      Mappings:
      Namespace Name Mixin selector
      named setTextColor Lnet/minecraft/client/gui/widget/AbstractTextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/AbstractTextWidget;
      intermediary method_48978 Lnet/minecraft/class_8130;method_48978(I)Lnet/minecraft/class_8130;
      official a Lfhd;a(I)Lfhd;
    • getTextRenderer

      protected final TextRenderer getTextRenderer()
      Mappings:
      Namespace Name Mixin selector
      named getTextRenderer Lnet/minecraft/client/gui/widget/AbstractTextWidget;getTextRenderer()Lnet/minecraft/client/font/TextRenderer;
      intermediary method_48977 Lnet/minecraft/class_8130;method_48977()Lnet/minecraft/class_327;
      official a Lfhd;a()Lfgr;
    • getTextColor

      protected final int getTextColor()
      Mappings:
      Namespace Name Mixin selector
      named getTextColor Lnet/minecraft/client/gui/widget/AbstractTextWidget;getTextColor()I
      intermediary method_48979 Lnet/minecraft/class_8130;method_48979()I
      official b Lfhd;b()I