Class IconButtonWidget

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

@Environment(CLIENT) public class IconButtonWidget extends ButtonWidget
Mappings:
Namespace Name
official epg
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 Lepg;a:Ladd;
      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 Lepg;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 Lepg;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 Lepg;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 Lepg;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 Lepg;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 E Lepg;E: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 F Lepg;F: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 G Lepg;G: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 H Lepg;H: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> Lepg;<init>(Ltj;IIIIIIIIILadd;Leoc$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(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
    • drawMessage

      public void drawMessage(MatrixStack matrices, TextRenderer textRenderer, int color)
      Overrides:
      drawMessage in class PressableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lent;a(Lehe;Lenp;I)V
      intermediary method_48589 Lnet/minecraft/class_4264;method_48589(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;I)V
      named drawMessage Lnet/minecraft/client/gui/widget/PressableWidget;drawMessage(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;I)V
    • getIconX

      private int getIconX()
      Mappings:
      Namespace Name Mixin selector
      official a Lepg;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 Lepg;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 Lepg;a(Ltj;Ladd;Leoc$c;)Lepg$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;