Class TextWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

@Environment(CLIENT) public class TextWidget extends ClickableWidget
Mappings:
Namespace Name
official ekz
intermediary net/minecraft/class_7842
named net/minecraft/client/gui/widget/TextWidget
  • 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

      private final TextRenderer 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

      public TextWidget(Text message, TextRenderer textRenderer)
      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

      public TextWidget(int width, int height, Text message, TextRenderer textRenderer)
      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

      public TextWidget(int x, int y, int width, int height, Text message, TextRenderer textRenderer)
      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

      public TextWidget setTextColor(int textColor)
      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

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      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

      public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class ClickableWidget
      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