Class TextIconButtonWidget.Builder

java.lang.Object
net.minecraft.client.gui.widget.TextIconButtonWidget.Builder
Enclosing class:
TextIconButtonWidget

@Environment(CLIENT) public static class TextIconButtonWidget.Builder extends Object
Mappings:
Namespace Name
official eyl$a
intermediary net/minecraft/class_8662$class_8663
named net/minecraft/client/gui/widget/TextIconButtonWidget$Builder
  • Field Details

    • text

      private final Text text
      Mappings:
      Namespace Name Mixin selector
      official a Leyl$a;a:Lvf;
      intermediary field_45382 Lnet/minecraft/class_8662$class_8663;field_45382:Lnet/minecraft/class_2561;
      named text Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;text:Lnet/minecraft/text/Text;
    • onPress

      private final ButtonWidget.PressAction onPress
      Mappings:
      Namespace Name Mixin selector
      official b Leyl$a;b:Lexg$c;
      intermediary field_45383 Lnet/minecraft/class_8662$class_8663;field_45383:Lnet/minecraft/class_4185$class_4241;
      named onPress Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;onPress:Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;
    • hideText

      private final boolean hideText
      Mappings:
      Namespace Name Mixin selector
      official c Leyl$a;c:Z
      intermediary field_45384 Lnet/minecraft/class_8662$class_8663;field_45384:Z
      named hideText Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;hideText:Z
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official d Leyl$a;d:I
      intermediary field_45385 Lnet/minecraft/class_8662$class_8663;field_45385:I
      named width Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;width:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official e Leyl$a;e:I
      intermediary field_45386 Lnet/minecraft/class_8662$class_8663;field_45386:I
      named height Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;height:I
    • texture

      @Nullable private @Nullable Identifier texture
      Mappings:
      Namespace Name Mixin selector
      official f Leyl$a;f:Lahg;
      intermediary field_45387 Lnet/minecraft/class_8662$class_8663;field_45387:Lnet/minecraft/class_2960;
      named texture Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;texture:Lnet/minecraft/util/Identifier;
    • textureWidth

      private int textureWidth
      Mappings:
      Namespace Name Mixin selector
      official g Leyl$a;g:I
      intermediary field_45388 Lnet/minecraft/class_8662$class_8663;field_45388:I
      named textureWidth Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;textureWidth:I
    • textureHeight

      private int textureHeight
      Mappings:
      Namespace Name Mixin selector
      official h Leyl$a;h:I
      intermediary field_45389 Lnet/minecraft/class_8662$class_8663;field_45389:I
      named textureHeight Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;textureHeight:I
  • Constructor Details

    • Builder

      public Builder(Text text, ButtonWidget.PressAction onPress, boolean hideText)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyl$a;<init>(Lvf;Lexg$c;Z)V
      intermediary <init> Lnet/minecraft/class_8662$class_8663;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Z)V
      named <init> Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Z)V
  • Method Details

    • width

      public TextIconButtonWidget.Builder width(int width)
      Mappings:
      Namespace Name Mixin selector
      official a Leyl$a;a(I)Leyl$a;
      intermediary method_52725 Lnet/minecraft/class_8662$class_8663;method_52725(I)Lnet/minecraft/class_8662$class_8663;
      named width Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;width(I)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;
    • dimension

      public TextIconButtonWidget.Builder dimension(int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Leyl$a;a(II)Leyl$a;
      intermediary method_52726 Lnet/minecraft/class_8662$class_8663;method_52726(II)Lnet/minecraft/class_8662$class_8663;
      named dimension Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;dimension(II)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;
    • texture

      public TextIconButtonWidget.Builder texture(Identifier texture, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Leyl$a;a(Lahg;II)Leyl$a;
      intermediary method_52727 Lnet/minecraft/class_8662$class_8663;method_52727(Lnet/minecraft/class_2960;II)Lnet/minecraft/class_8662$class_8663;
      named texture Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;texture(Lnet/minecraft/util/Identifier;II)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;
    • build

      public TextIconButtonWidget build()
      Mappings:
      Namespace Name Mixin selector
      official a Leyl$a;a()Leyl;
      intermediary method_52724 Lnet/minecraft/class_8662$class_8663;method_52724()Lnet/minecraft/class_8662;
      named build Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;build()Lnet/minecraft/client/gui/widget/TextIconButtonWidget;