Class IconButtonWidget

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

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

    • field_42122

      private static final int field_42122
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official B Lenx;B:I
      intermediary field_42122 Lnet/minecraft/class_8084;field_42122:I
      named field_42122 Lnet/minecraft/client/gui/widget/IconButtonWidget;field_42122:I
    • xOffset

      private final int xOffset
      Mappings:
      Namespace Name Mixin selector
      official C Lenx;C:I
      intermediary field_42123 Lnet/minecraft/class_8084;field_42123:I
      named xOffset Lnet/minecraft/client/gui/widget/IconButtonWidget;xOffset:I
    • yOffset

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

      private final int iconWidth
      Mappings:
      Namespace Name Mixin selector
      official E Lenx;E: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 F Lenx;F: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 u, int v, int xOffset, int yOffset, int hoveredVOffset, int iconWidth, int iconHeight, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction pressAction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lenx;<init>(Ltd;IIIIIIIIILacw;Lemv$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 TexturedButtonWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lems;b(Lega;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 centerX, int y, int color)
      Overrides:
      drawMessage in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lems;a(Lega;Lemi;III)V
      intermediary method_48589 Lnet/minecraft/class_339;method_48589(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;III)V
      named drawMessage Lnet/minecraft/client/gui/widget/ClickableWidget;drawMessage(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;III)V
    • getXWithOffset

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

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

      public static IconButtonWidget.Builder builder(Text message, Identifier texture, ButtonWidget.PressAction pressAction)
      Mappings:
      Namespace Name Mixin selector
      official a Lenx;a(Ltd;Lacw;Lemv$c;)Lenx$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;