Class TextIconButtonWidget.IconOnly

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
RealmsMainScreen.NotificationButtonWidget
Enclosing class:
TextIconButtonWidget

@Environment(CLIENT) public static class TextIconButtonWidget.IconOnly extends TextIconButtonWidget
Mappings:
Namespace Name
official etu$b
intermediary net/minecraft/class_8662$class_8664
named net/minecraft/client/gui/widget/TextIconButtonWidget$IconOnly
  • Constructor Details

    • IconOnly

      protected IconOnly(int width, int height, Text message, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction onPress)
      Mappings:
      Namespace Name Mixin selector
      official <init> Letu;<init>(IILtl;IILaew;Lesq$c;)V
      intermediary <init> Lnet/minecraft/class_8662;<init>(IILnet/minecraft/class_2561;IILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)V
      named <init> Lnet/minecraft/client/gui/widget/TextIconButtonWidget;<init>(IILnet/minecraft/text/Text;IILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)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 Leso;b(Lesf;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
    • drawMessage

      public void drawMessage(DrawContext context, TextRenderer textRenderer, int color)
      Overrides:
      drawMessage in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lesi;a(Lesf;Lesd;I)V
      intermediary method_48589 Lnet/minecraft/class_4264;method_48589(Lnet/minecraft/class_332;Lnet/minecraft/class_327;I)V
      named drawMessage Lnet/minecraft/client/gui/widget/PressableWidget;drawMessage(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;I)V