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 fpd
  • 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 Lfpd;a:Lfnp;
    • 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 Lfpd;b:Lxv;
    • 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 Lfpd;c:Lxv;
  • 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> Lfpd;<init>(IIIILxv;Lfoe$c;Lfnp;)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 Lfoc;b(Lfnr;IIF)V