Class TextWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

@Environment(CLIENT) public class TextWidget extends AbstractTextWidget
Mappings:
Namespace Name
official eqk
intermediary net/minecraft/class_7842
named net/minecraft/client/gui/widget/TextWidget
  • Field Details

    • horizontalAlignment

      private float horizontalAlignment
      Mappings:
      Namespace Name Mixin selector
      official a Leqk;a:F
      intermediary field_42121 Lnet/minecraft/class_7842;field_42121:F
      named horizontalAlignment Lnet/minecraft/client/gui/widget/TextWidget;horizontalAlignment:F
  • Constructor Details

    • TextWidget

      public TextWidget(Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leqk;<init>(Lsw;Leov;)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> Leqk;<init>(IILsw;Leov;)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> Leqk;<init>(IIIILsw;Leov;)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)
      Overrides:
      setTextColor in class AbstractTextWidget
      Mappings:
      Namespace Name Mixin selector
      official h Leqk;h(I)Leqk;
      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;
    • align

      private TextWidget align(float horizontalAlignment)
      Mappings:
      Namespace Name Mixin selector
      official b Leqk;b(F)Leqk;
      intermediary method_48598 Lnet/minecraft/class_7842;method_48598(F)Lnet/minecraft/class_7842;
      named align Lnet/minecraft/client/gui/widget/TextWidget;align(F)Lnet/minecraft/client/gui/widget/TextWidget;
    • alignLeft

      public TextWidget alignLeft()
      Mappings:
      Namespace Name Mixin selector
      official e Leqk;e()Leqk;
      intermediary method_48596 Lnet/minecraft/class_7842;method_48596()Lnet/minecraft/class_7842;
      named alignLeft Lnet/minecraft/client/gui/widget/TextWidget;alignLeft()Lnet/minecraft/client/gui/widget/TextWidget;
    • alignCenter

      public TextWidget alignCenter()
      Mappings:
      Namespace Name Mixin selector
      official f Leqk;f()Leqk;
      intermediary method_48597 Lnet/minecraft/class_7842;method_48597()Lnet/minecraft/class_7842;
      named alignCenter Lnet/minecraft/client/gui/widget/TextWidget;alignCenter()Lnet/minecraft/client/gui/widget/TextWidget;
    • alignRight

      public TextWidget alignRight()
      Mappings:
      Namespace Name Mixin selector
      official g Leqk;g()Leqk;
      intermediary method_48599 Lnet/minecraft/class_7842;method_48599()Lnet/minecraft/class_7842;
      named alignRight Lnet/minecraft/client/gui/widget/TextWidget;alignRight()Lnet/minecraft/client/gui/widget/TextWidget;
    • renderButton

      public void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(Leox;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V