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
official eoq
intermediary net/minecraft/class_8130
named net/minecraft/client/gui/widget/AbstractTextWidget
  • Field Details

    • textRenderer

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

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

    • AbstractTextWidget

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

    • appendClickableNarrations

      protected void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Leor;a(Lesa;)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
    • setTextColor

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

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

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