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 fpk$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 Lfpk$a;b:Lxv;
    • 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 Lfpk$a;c:Lfoe$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 Lfpk$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 Lfpk$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 Lfpk$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 Lfpk$a;g:Lalz;
    • 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 Lfpk$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 Lfpk$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 Lfpk$a;a:Lfoe$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> Lfpk$a;<init>(Lxv;Lfoe$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 Lfpk$a;a(I)Lfpk$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 Lfpk$a;a(II)Lfpk$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 Lfpk$a;a(Lalz;II)Lfpk$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 Lfpk$a;a(Lfoe$b;)Lfpk$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 Lfpk$a;a()Lfpk;