Class PressableTextWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Selectable

@Environment(CLIENT) public class PressableTextWidget extends ButtonWidget
Mappings:
Namespace Name
official elv
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 Lelv;a:Lekm;
      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 Lelv;b:Lss;
      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 Lelv;c:Lss;
      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> Lelv;<init>(IIIILss;Leky$c;Lekm;)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 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