Class TextWidget

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

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

    • horizontalAlignment

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

    • TextWidget

      public TextWidget(Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/TextWidget;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_7842;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
      official <init> Lfpm;<init>(Lxv;Lfnp;)V
    • TextWidget

      public TextWidget(int width, int height, Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/TextWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_7842;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
      official <init> Lfpm;<init>(IILxv;Lfnp;)V
    • TextWidget

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

    • setTextColor

      public TextWidget setTextColor(int textColor)
      Overrides:
      setTextColor in class AbstractTextWidget
      Mappings:
      Namespace Name Mixin selector
      named setTextColor Lnet/minecraft/client/gui/widget/TextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/TextWidget;
      intermediary method_46438 Lnet/minecraft/class_7842;method_46438(I)Lnet/minecraft/class_7842;
      official b Lfpm;b(I)Lfpm;
    • align

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

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

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

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

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

      private OrderedText trim(Text text, int width)
      Mappings:
      Namespace Name Mixin selector
      named trim Lnet/minecraft/client/gui/widget/TextWidget;trim(Lnet/minecraft/text/Text;I)Lnet/minecraft/text/OrderedText;
      intermediary method_52728 Lnet/minecraft/class_7842;method_52728(Lnet/minecraft/class_2561;I)Lnet/minecraft/class_5481;
      official a Lfpm;a(Lxv;I)Lazq;