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
named net/minecraft/client/gui/widget/TextIconButtonWidget$IconOnly
intermediary net/minecraft/class_8662$class_8664
official fil$b
  • Constructor Details

    • IconOnly

      protected IconOnly(int width, int height, Text message, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction onPress, @Nullable ButtonWidget.NarrationSupplier narrationSupplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/TextIconButtonWidget;<init>(IILnet/minecraft/text/Text;IILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;)V
      intermediary <init> Lnet/minecraft/class_8662;<init>(IILnet/minecraft/class_2561;IILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_4185$class_7841;)V
      official <init> Lfil;<init>(IILxp;IILalf;Lfhg$c;Lfhg$b;)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 Lfhe;b(Lfgt;IIF)V
    • drawMessage

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