Class ButtonWidget.Builder

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

@Environment(CLIENT) public static class ButtonWidget.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/client/gui/widget/ButtonWidget$Builder
intermediary net/minecraft/class_4185$class_7840
official fhg$a
  • Field Details

    • message

      private final Text message
      Mappings:
      Namespace Name Mixin selector
      named message Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;message:Lnet/minecraft/text/Text;
      intermediary field_40756 Lnet/minecraft/class_4185$class_7840;field_40756:Lnet/minecraft/class_2561;
      official a Lfhg$a;a:Lxp;
    • onPress

      private final ButtonWidget.PressAction onPress
      Mappings:
      Namespace Name Mixin selector
      named onPress Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;onPress:Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;
      intermediary field_40757 Lnet/minecraft/class_4185$class_7840;field_40757:Lnet/minecraft/class_4185$class_4241;
      official b Lfhg$a;b:Lfhg$c;
    • tooltip

      @Nullable private @Nullable Tooltip tooltip
      Mappings:
      Namespace Name Mixin selector
      named tooltip Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;tooltip:Lnet/minecraft/client/gui/tooltip/Tooltip;
      intermediary field_41099 Lnet/minecraft/class_4185$class_7840;field_41099:Lnet/minecraft/class_7919;
      official c Lfhg$a;c:Lfir;
    • x

      private int x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;x:I
      intermediary field_40759 Lnet/minecraft/class_4185$class_7840;field_40759:I
      official d Lfhg$a;d:I
    • y

      private int y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;y:I
      intermediary field_40760 Lnet/minecraft/class_4185$class_7840;field_40760:I
      official e Lfhg$a;e:I
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;width:I
      intermediary field_40761 Lnet/minecraft/class_4185$class_7840;field_40761:I
      official f Lfhg$a;f:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;height:I
      intermediary field_40762 Lnet/minecraft/class_4185$class_7840;field_40762:I
      official g Lfhg$a;g:I
    • narrationSupplier

      private ButtonWidget.NarrationSupplier narrationSupplier
      Mappings:
      Namespace Name Mixin selector
      named narrationSupplier Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;narrationSupplier:Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;
      intermediary field_40763 Lnet/minecraft/class_4185$class_7840;field_40763:Lnet/minecraft/class_4185$class_7841;
      official h Lfhg$a;h:Lfhg$b;
  • Constructor Details

    • Builder

      public Builder(Text message, ButtonWidget.PressAction onPress)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
      intermediary <init> Lnet/minecraft/class_4185$class_7840;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;)V
      official <init> Lfhg$a;<init>(Lxp;Lfhg$c;)V
  • Method Details

    • position

      public ButtonWidget.Builder position(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      named position Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;position(II)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46433 Lnet/minecraft/class_4185$class_7840;method_46433(II)Lnet/minecraft/class_4185$class_7840;
      official a Lfhg$a;a(II)Lfhg$a;
    • width

      public ButtonWidget.Builder width(int width)
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;width(I)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46432 Lnet/minecraft/class_4185$class_7840;method_46432(I)Lnet/minecraft/class_4185$class_7840;
      official a Lfhg$a;a(I)Lfhg$a;
    • size

      public ButtonWidget.Builder size(int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;size(II)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46437 Lnet/minecraft/class_4185$class_7840;method_46437(II)Lnet/minecraft/class_4185$class_7840;
      official b Lfhg$a;b(II)Lfhg$a;
    • dimensions

      public ButtonWidget.Builder dimensions(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named dimensions Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;dimensions(IIII)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46434 Lnet/minecraft/class_4185$class_7840;method_46434(IIII)Lnet/minecraft/class_4185$class_7840;
      official a Lfhg$a;a(IIII)Lfhg$a;
    • tooltip

      public ButtonWidget.Builder tooltip(@Nullable @Nullable Tooltip tooltip)
      Mappings:
      Namespace Name Mixin selector
      named tooltip Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;tooltip(Lnet/minecraft/client/gui/tooltip/Tooltip;)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46436 Lnet/minecraft/class_4185$class_7840;method_46436(Lnet/minecraft/class_7919;)Lnet/minecraft/class_4185$class_7840;
      official a Lfhg$a;a(Lfir;)Lfhg$a;
    • narrationSupplier

      public ButtonWidget.Builder narrationSupplier(ButtonWidget.NarrationSupplier narrationSupplier)
      Mappings:
      Namespace Name Mixin selector
      named narrationSupplier Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;narrationSupplier(Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
      intermediary method_46435 Lnet/minecraft/class_4185$class_7840;method_46435(Lnet/minecraft/class_4185$class_7841;)Lnet/minecraft/class_4185$class_7840;
      official a Lfhg$a;a(Lfhg$b;)Lfhg$a;
    • build

      public ButtonWidget build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;build()Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary method_46431 Lnet/minecraft/class_4185$class_7840;method_46431()Lnet/minecraft/class_4185;
      official a Lfhg$a;a()Lfhg;