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
official eoc$a
intermediary net/minecraft/class_4185$class_7840
named net/minecraft/client/gui/widget/ButtonWidget$Builder
  • Field Details

    • message

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

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

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

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

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

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

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

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

    • Builder

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

    • position

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

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

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

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

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

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

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