Class PressableTextWidget

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

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

    • textRenderer

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

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

      private final Text hoverText
      Mappings:
      Namespace Name Mixin selector
      official c Leqe;c:Lsw;
      intermediary field_37259 Lnet/minecraft/class_7077;field_37259:Lnet/minecraft/class_2561;
      named hoverText Lnet/minecraft/client/gui/widget/PressableTextWidget;hoverText:Lnet/minecraft/text/Text;
  • 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
      official <init> Leqe;<init>(IIIILsw;Lepi$c;Leov;)V
      intermediary <init> Lnet/minecraft/class_7077;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_327;)V
      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
  • Method Details

    • renderButton

      public void renderButton(DrawContext context, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lepf;b(Leox;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V