Class MultilineTextWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
NarratedMultilineTextWidget

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

    • maxWidth

      private OptionalInt maxWidth
      Mappings:
      Namespace Name Mixin selector
      named maxWidth Lnet/minecraft/client/gui/widget/MultilineTextWidget;maxWidth:Ljava/util/OptionalInt;
      intermediary field_42486 Lnet/minecraft/class_7940;field_42486:Ljava/util/OptionalInt;
      official a Lfja;a:Ljava/util/OptionalInt;
    • maxRows

      private OptionalInt maxRows
      Mappings:
      Namespace Name Mixin selector
      named maxRows Lnet/minecraft/client/gui/widget/MultilineTextWidget;maxRows:Ljava/util/OptionalInt;
      intermediary field_42487 Lnet/minecraft/class_7940;field_42487:Ljava/util/OptionalInt;
      official b Lfja;b:Ljava/util/OptionalInt;
    • cacheKeyToText

      Mappings:
      Namespace Name Mixin selector
      named cacheKeyToText Lnet/minecraft/client/gui/widget/MultilineTextWidget;cacheKeyToText:Lnet/minecraft/util/CachedMapper;
      intermediary field_42488 Lnet/minecraft/class_7940;field_42488:Lnet/minecraft/class_8105;
      official c Lfja;c:Lazd;
    • centered

      private boolean centered
      Mappings:
      Namespace Name Mixin selector
      named centered Lnet/minecraft/client/gui/widget/MultilineTextWidget;centered:Z
      intermediary field_41343 Lnet/minecraft/class_7940;field_41343:Z
      official d Lfja;d:Z
  • Constructor Details

    • MultilineTextWidget

      public MultilineTextWidget(Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_7940;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
      official <init> Lfja;<init>(Lwy;Lfhr;)V
    • MultilineTextWidget

      public MultilineTextWidget(int x, int y, Text message, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(IILnet/minecraft/text/Text;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_7940;<init>(IILnet/minecraft/class_2561;Lnet/minecraft/class_327;)V
      official <init> Lfja;<init>(IILwy;Lfhr;)V
  • Method Details

    • setTextColor

      public MultilineTextWidget setTextColor(int int2)
      Overrides:
      setTextColor in class AbstractTextWidget
      Mappings:
      Namespace Name Mixin selector
      named setTextColor Lnet/minecraft/client/gui/widget/MultilineTextWidget;setTextColor(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
      intermediary method_48983 Lnet/minecraft/class_7940;method_48983(I)Lnet/minecraft/class_7940;
      official c Lfja;c(I)Lfja;
    • setMaxWidth

      public MultilineTextWidget setMaxWidth(int maxWidth)
      Mappings:
      Namespace Name Mixin selector
      named setMaxWidth Lnet/minecraft/client/gui/widget/MultilineTextWidget;setMaxWidth(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
      intermediary method_48984 Lnet/minecraft/class_7940;method_48984(I)Lnet/minecraft/class_7940;
      official d Lfja;d(I)Lfja;
    • setMaxRows

      public MultilineTextWidget setMaxRows(int maxRows)
      Mappings:
      Namespace Name Mixin selector
      named setMaxRows Lnet/minecraft/client/gui/widget/MultilineTextWidget;setMaxRows(I)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
      intermediary method_48985 Lnet/minecraft/class_7940;method_48985(I)Lnet/minecraft/class_7940;
      official e Lfja;e(I)Lfja;
    • setCentered

      public MultilineTextWidget setCentered(boolean centered)
      Mappings:
      Namespace Name Mixin selector
      named setCentered Lnet/minecraft/client/gui/widget/MultilineTextWidget;setCentered(Z)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
      intermediary method_48981 Lnet/minecraft/class_7940;method_48981(Z)Lnet/minecraft/class_7940;
      official b Lfja;b(Z)Lfja;
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Widget
      Overrides:
      getWidth in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/gui/widget/Widget;getWidth()I
      intermediary method_25368 Lnet/minecraft/class_8021;method_25368()I
      official y Lflv;y()I
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Widget
      Overrides:
      getHeight in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/gui/widget/Widget;getHeight()I
      intermediary method_25364 Lnet/minecraft/class_8021;method_25364()I
      official w Lflv;w()I
    • 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 Lfie;b(Lfht;IIF)V
    • getCacheKey

      private MultilineTextWidget.CacheKey getCacheKey()
      Mappings:
      Namespace Name Mixin selector
      named getCacheKey Lnet/minecraft/client/gui/widget/MultilineTextWidget;getCacheKey()Lnet/minecraft/client/gui/widget/MultilineTextWidget$CacheKey;
      intermediary method_48982 Lnet/minecraft/class_7940;method_48982()Lnet/minecraft/class_7940$class_8131;
      official c Lfja;c()Lfja$a;