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
named net/minecraft/client/gui/widget/TextIconButtonWidget$Builder
intermediary net/minecraft/class_8662$class_8663
official fjl$a
  • Field Details

    • text

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

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

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

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

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

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

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

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

      Mappings:
      Namespace Name Mixin selector
      named narrationSupplier Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;narrationSupplier:Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;
      intermediary field_49486 Lnet/minecraft/class_8662$class_8663;field_49486:Lnet/minecraft/class_4185$class_7841;
      official a Lfjl$a;a:Lfig$b;
  • Constructor Details

    • Builder

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

    • width

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

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

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

      public TextIconButtonWidget.Builder narration(ButtonWidget.NarrationSupplier narrationSupplier)
      Mappings:
      Namespace Name Mixin selector
      named narration Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;narration(Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;
      intermediary method_57722 Lnet/minecraft/class_8662$class_8663;method_57722(Lnet/minecraft/class_4185$class_7841;)Lnet/minecraft/class_8662$class_8663;
      official a Lfjl$a;a(Lfig$b;)Lfjl$a;
    • build

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