Class MultilineTextWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

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

    • text

      private final MultilineText text
      Mappings:
      Namespace Name Mixin selector
      official a Lelr;a:Lelq;
      intermediary field_41341 Lnet/minecraft/class_7940;field_41341:Lnet/minecraft/class_5489;
      named text Lnet/minecraft/client/gui/widget/MultilineTextWidget;text:Lnet/minecraft/client/font/MultilineText;
    • fontHeight

      private final int fontHeight
      Mappings:
      Namespace Name Mixin selector
      official b Lelr;b:I
      intermediary field_41342 Lnet/minecraft/class_7940;field_41342:I
      named fontHeight Lnet/minecraft/client/gui/widget/MultilineTextWidget;fontHeight:I
    • centered

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

    • MultilineTextWidget

      private MultilineTextWidget(MultilineText multilineText, TextRenderer textRenderer, Text text, boolean centered)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lelr;<init>(Lelq;Lekm;Lss;Z)V
      intermediary <init> Lnet/minecraft/class_7940;<init>(Lnet/minecraft/class_5489;Lnet/minecraft/class_327;Lnet/minecraft/class_2561;Z)V
      named <init> Lnet/minecraft/client/gui/widget/MultilineTextWidget;<init>(Lnet/minecraft/client/font/MultilineText;Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;Z)V
  • Method Details

    • createCentered

      public static MultilineTextWidget createCentered(int width, TextRenderer textRenderer, Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lelr;a(ILekm;Lss;)Lelr;
      intermediary method_47617 Lnet/minecraft/class_7940;method_47617(ILnet/minecraft/class_327;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7940;
      named createCentered Lnet/minecraft/client/gui/widget/MultilineTextWidget;createCentered(ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
    • createNonCentered

      public static MultilineTextWidget createNonCentered(int width, TextRenderer textRenderer, Text text)
      Mappings:
      Namespace Name Mixin selector
      official b Lelr;b(ILekm;Lss;)Lelr;
      intermediary method_47618 Lnet/minecraft/class_7940;method_47618(ILnet/minecraft/class_327;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7940;
      named createNonCentered Lnet/minecraft/client/gui/widget/MultilineTextWidget;createNonCentered(ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/widget/MultilineTextWidget;
    • appendClickableNarrations

      protected 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