Class IconButtonWidget

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

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

    • iconTexture

      protected final Identifier iconTexture
      Mappings:
      Namespace Name Mixin selector
      official a Leqf;a:Lacq;
      intermediary field_43070 Lnet/minecraft/class_8084;field_43070:Lnet/minecraft/class_2960;
      named iconTexture Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTexture:Lnet/minecraft/util/Identifier;
    • iconU

      protected final int iconU
      Mappings:
      Namespace Name Mixin selector
      official b Leqf;b:I
      intermediary field_43071 Lnet/minecraft/class_8084;field_43071:I
      named iconU Lnet/minecraft/client/gui/widget/IconButtonWidget;iconU:I
    • iconV

      protected final int iconV
      Mappings:
      Namespace Name Mixin selector
      official c Leqf;c:I
      intermediary field_43072 Lnet/minecraft/class_8084;field_43072:I
      named iconV Lnet/minecraft/client/gui/widget/IconButtonWidget;iconV:I
    • iconHoveredVOffset

      protected final int iconHoveredVOffset
      Mappings:
      Namespace Name Mixin selector
      official d Leqf;d:I
      intermediary field_43073 Lnet/minecraft/class_8084;field_43073:I
      named iconHoveredVOffset Lnet/minecraft/client/gui/widget/IconButtonWidget;iconHoveredVOffset:I
    • iconTextureWidth

      protected final int iconTextureWidth
      Mappings:
      Namespace Name Mixin selector
      official e Leqf;e:I
      intermediary field_43074 Lnet/minecraft/class_8084;field_43074:I
      named iconTextureWidth Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTextureWidth:I
    • iconTextureHeight

      protected final int iconTextureHeight
      Mappings:
      Namespace Name Mixin selector
      official f Leqf;f:I
      intermediary field_43075 Lnet/minecraft/class_8084;field_43075:I
      named iconTextureHeight Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTextureHeight:I
    • iconXOffset

      private final int iconXOffset
      Mappings:
      Namespace Name Mixin selector
      official A Leqf;A:I
      intermediary field_42123 Lnet/minecraft/class_8084;field_42123:I
      named iconXOffset Lnet/minecraft/client/gui/widget/IconButtonWidget;iconXOffset:I
    • iconYOffset

      private final int iconYOffset
      Mappings:
      Namespace Name Mixin selector
      official C Leqf;C:I
      intermediary field_42124 Lnet/minecraft/class_8084;field_42124:I
      named iconYOffset Lnet/minecraft/client/gui/widget/IconButtonWidget;iconYOffset:I
    • iconWidth

      private final int iconWidth
      Mappings:
      Namespace Name Mixin selector
      official D Leqf;D:I
      intermediary field_42125 Lnet/minecraft/class_8084;field_42125:I
      named iconWidth Lnet/minecraft/client/gui/widget/IconButtonWidget;iconWidth:I
    • iconHeight

      private final int iconHeight
      Mappings:
      Namespace Name Mixin selector
      official E Leqf;E:I
      intermediary field_42126 Lnet/minecraft/class_8084;field_42126:I
      named iconHeight Lnet/minecraft/client/gui/widget/IconButtonWidget;iconHeight:I
  • Constructor Details

    • IconButtonWidget

      IconButtonWidget(Text message, int iconU, int iconV, int iconXOffset, int iconYOffset, int iconHoveredVOffset, int iconWidth, int iconHeight, int iconTextureWidth, int iconTextureHeight, Identifier iconTexture, ButtonWidget.PressAction onPress)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leqf;<init>(Lsw;IIIIIIIIILacq;Lepa$c;)V
      intermediary <init> Lnet/minecraft/class_8084;<init>(Lnet/minecraft/class_2561;IIIIIIIIILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)V
      named <init> Lnet/minecraft/client/gui/widget/IconButtonWidget;<init>(Lnet/minecraft/text/Text;IIIIIIIIILnet/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 Leox;b(Leop;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 Leor;a(Leop;Leon;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
    • getIconX

      private int getIconX()
      Mappings:
      Namespace Name Mixin selector
      official a Leqf;a()I
      intermediary method_48600 Lnet/minecraft/class_8084;method_48600()I
      named getIconX Lnet/minecraft/client/gui/widget/IconButtonWidget;getIconX()I
    • getIconY

      private int getIconY()
      Mappings:
      Namespace Name Mixin selector
      official b Leqf;b()I
      intermediary method_48602 Lnet/minecraft/class_8084;method_48602()I
      named getIconY Lnet/minecraft/client/gui/widget/IconButtonWidget;getIconY()I
    • builder

      public static IconButtonWidget.Builder builder(Text message, Identifier texture, ButtonWidget.PressAction pressAction)
      Mappings:
      Namespace Name Mixin selector
      official a Leqf;a(Lsw;Lacq;Lepa$c;)Leqf$a;
      intermediary method_48601 Lnet/minecraft/class_8084;method_48601(Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)Lnet/minecraft/class_8084$class_8085;
      named builder Lnet/minecraft/client/gui/widget/IconButtonWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)Lnet/minecraft/client/gui/widget/IconButtonWidget$Builder;