Class PressableTextWidget

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

@Environment(CLIENT) public class PressableTextWidget extends ButtonWidget
Mappings:
Namespace Name
official eox
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 Leox;a:Lenp;
      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 Leox;b:Ltj;
      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 Leox;c:Ltj;
      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> Leox;<init>(IIIILtj;Leoc$c;Lenp;)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(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lenz;b(Lehe;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V