Class TextIconButtonWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget
Direct Known Subclasses:
TextIconButtonWidget.IconOnly, TextIconButtonWidget.WithText

@Environment(CLIENT) public abstract class TextIconButtonWidget extends ButtonWidget
A button with an icon and an optional text.
See Also:
Mappings:
Namespace Name
official etu
intermediary net/minecraft/class_8662
named net/minecraft/client/gui/widget/TextIconButtonWidget
  • Field Details

    • texture

      protected final Identifier texture
      Mappings:
      Namespace Name Mixin selector
      official a Letu;a:Laew;
      intermediary field_45379 Lnet/minecraft/class_8662;field_45379:Lnet/minecraft/class_2960;
      named texture Lnet/minecraft/client/gui/widget/TextIconButtonWidget;texture:Lnet/minecraft/util/Identifier;
    • textureWidth

      protected final int textureWidth
      Mappings:
      Namespace Name Mixin selector
      official b Letu;b:I
      intermediary field_45380 Lnet/minecraft/class_8662;field_45380:I
      named textureWidth Lnet/minecraft/client/gui/widget/TextIconButtonWidget;textureWidth:I
    • textureHeight

      protected final int textureHeight
      Mappings:
      Namespace Name Mixin selector
      official c Letu;c:I
      intermediary field_45381 Lnet/minecraft/class_8662;field_45381:I
      named textureHeight Lnet/minecraft/client/gui/widget/TextIconButtonWidget;textureHeight:I
  • Constructor Details

    • TextIconButtonWidget

      TextIconButtonWidget(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

    • builder

      public static TextIconButtonWidget.Builder builder(Text text, ButtonWidget.PressAction onPress, boolean hideLabel)
      Mappings:
      Namespace Name Mixin selector
      official a Letu;a(Ltl;Lesq$c;Z)Letu$a;
      intermediary method_52723 Lnet/minecraft/class_8662;method_52723(Lnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Z)Lnet/minecraft/class_8662$class_8663;
      named builder Lnet/minecraft/client/gui/widget/TextIconButtonWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Z)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;