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 fob
  • 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 Lfob;a:Lfnp;
    • 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 Lfob;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> Lfob;<init>(IIIILxv;Lfnp;)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 Lfoc;a(Lfsc;)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 Lfob;a(I)Lfob;
    • 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 Lfob;a()Lfnp;
    • 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 Lfob;b()I