Class PressableTextWidget

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

@Environment(CLIENT) public class PressableTextWidget extends ButtonWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/PressableTextWidget
intermediary net/minecraft/class_7077
official fie
  • Field Details

    • textRenderer

      private final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      named textRenderer Lnet/minecraft/client/gui/widget/PressableTextWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
      intermediary field_37257 Lnet/minecraft/class_7077;field_37257:Lnet/minecraft/class_327;
      official a Lfie;a:Lfgr;
    • text

      private final Text text
      Mappings:
      Namespace Name Mixin selector
      named text Lnet/minecraft/client/gui/widget/PressableTextWidget;text:Lnet/minecraft/text/Text;
      intermediary field_37258 Lnet/minecraft/class_7077;field_37258:Lnet/minecraft/class_2561;
      official b Lfie;b:Lxp;
    • hoverText

      private final Text hoverText
      Mappings:
      Namespace Name Mixin selector
      named hoverText Lnet/minecraft/client/gui/widget/PressableTextWidget;hoverText:Lnet/minecraft/text/Text;
      intermediary field_37259 Lnet/minecraft/class_7077;field_37259:Lnet/minecraft/class_2561;
      official c Lfie;c:Lxp;
  • Constructor Details

    • PressableTextWidget

      public PressableTextWidget(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/PressableTextWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/client/font/TextRenderer;)V
      intermediary <init> Lnet/minecraft/class_7077;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_327;)V
      official <init> Lfie;<init>(IIIILxp;Lfhg$c;Lfgr;)V
  • Method Details

    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Overrides:
      renderWidget in class PressableWidget
      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 Lfhe;b(Lfgt;IIF)V