Class PopupScreen.Builder

java.lang.Object
net.minecraft.client.gui.screen.PopupScreen.Builder
Enclosing class:
PopupScreen

@Environment(CLIENT) public static class PopupScreen.Builder extends Object
Mappings:
Namespace Name
official eyi$a
intermediary net/minecraft/class_8816$class_8817
named net/minecraft/client/gui/screen/PopupScreen$Builder
  • Field Details

    • backgroundScreen

      private final Screen backgroundScreen
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a:Lfdb;
      intermediary field_46568 Lnet/minecraft/class_8816$class_8817;field_46568:Lnet/minecraft/class_437;
      named backgroundScreen Lnet/minecraft/client/gui/screen/PopupScreen$Builder;backgroundScreen:Lnet/minecraft/client/gui/screen/Screen;
    • title

      private final Text title
      Mappings:
      Namespace Name Mixin selector
      official b Leyi$a;b:Lvf;
      intermediary field_46569 Lnet/minecraft/class_8816$class_8817;field_46569:Lnet/minecraft/class_2561;
      named title Lnet/minecraft/client/gui/screen/PopupScreen$Builder;title:Lnet/minecraft/text/Text;
    • message

      private Text message
      Mappings:
      Namespace Name Mixin selector
      official c Leyi$a;c:Lvf;
      intermediary field_46570 Lnet/minecraft/class_8816$class_8817;field_46570:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/client/gui/screen/PopupScreen$Builder;message:Lnet/minecraft/text/Text;
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official d Leyi$a;d:I
      intermediary field_46571 Lnet/minecraft/class_8816$class_8817;field_46571:I
      named width Lnet/minecraft/client/gui/screen/PopupScreen$Builder;width:I
    • image

      Mappings:
      Namespace Name Mixin selector
      official e Leyi$a;e:Lahg;
      intermediary field_46572 Lnet/minecraft/class_8816$class_8817;field_46572:Lnet/minecraft/class_2960;
      named image Lnet/minecraft/client/gui/screen/PopupScreen$Builder;image:Lnet/minecraft/util/Identifier;
    • buttons

      private final List<PopupScreen.Button> buttons
      Mappings:
      Namespace Name Mixin selector
      official f Leyi$a;f:Ljava/util/List;
      intermediary field_46573 Lnet/minecraft/class_8816$class_8817;field_46573:Ljava/util/List;
      named buttons Lnet/minecraft/client/gui/screen/PopupScreen$Builder;buttons:Ljava/util/List;
    • onClosed

      @Nullable private @Nullable Runnable onClosed
      Mappings:
      Namespace Name Mixin selector
      official g Leyi$a;g:Ljava/lang/Runnable;
      intermediary field_46574 Lnet/minecraft/class_8816$class_8817;field_46574:Ljava/lang/Runnable;
      named onClosed Lnet/minecraft/client/gui/screen/PopupScreen$Builder;onClosed:Ljava/lang/Runnable;
  • Constructor Details

    • Builder

      public Builder(Screen backgroundScreen, Text title)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyi$a;<init>(Lfdb;Lvf;)V
      intermediary <init> Lnet/minecraft/class_8816$class_8817;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/screen/PopupScreen$Builder;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;)V
  • Method Details

    • width

      public PopupScreen.Builder width(int width)
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a(I)Leyi$a;
      intermediary method_54126 Lnet/minecraft/class_8816$class_8817;method_54126(I)Lnet/minecraft/class_8816$class_8817;
      named width Lnet/minecraft/client/gui/screen/PopupScreen$Builder;width(I)Lnet/minecraft/client/gui/screen/PopupScreen$Builder;
    • image

      public PopupScreen.Builder image(Identifier image)
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a(Lahg;)Leyi$a;
      intermediary method_54127 Lnet/minecraft/class_8816$class_8817;method_54127(Lnet/minecraft/class_2960;)Lnet/minecraft/class_8816$class_8817;
      named image Lnet/minecraft/client/gui/screen/PopupScreen$Builder;image(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/gui/screen/PopupScreen$Builder;
    • message

      public PopupScreen.Builder message(Text message)
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a(Lvf;)Leyi$a;
      intermediary method_54129 Lnet/minecraft/class_8816$class_8817;method_54129(Lnet/minecraft/class_2561;)Lnet/minecraft/class_8816$class_8817;
      named message Lnet/minecraft/client/gui/screen/PopupScreen$Builder;message(Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/screen/PopupScreen$Builder;
    • button

      public PopupScreen.Builder button(Text message, Consumer<PopupScreen> action)
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a(Lvf;Ljava/util/function/Consumer;)Leyi$a;
      intermediary method_54130 Lnet/minecraft/class_8816$class_8817;method_54130(Lnet/minecraft/class_2561;Ljava/util/function/Consumer;)Lnet/minecraft/class_8816$class_8817;
      named button Lnet/minecraft/client/gui/screen/PopupScreen$Builder;button(Lnet/minecraft/text/Text;Ljava/util/function/Consumer;)Lnet/minecraft/client/gui/screen/PopupScreen$Builder;
    • onClosed

      public PopupScreen.Builder onClosed(Runnable onClosed)
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a(Ljava/lang/Runnable;)Leyi$a;
      intermediary method_54128 Lnet/minecraft/class_8816$class_8817;method_54128(Ljava/lang/Runnable;)Lnet/minecraft/class_8816$class_8817;
      named onClosed Lnet/minecraft/client/gui/screen/PopupScreen$Builder;onClosed(Ljava/lang/Runnable;)Lnet/minecraft/client/gui/screen/PopupScreen$Builder;
    • build

      public PopupScreen build()
      Mappings:
      Namespace Name Mixin selector
      official a Leyi$a;a()Leyi;
      intermediary method_54125 Lnet/minecraft/class_8816$class_8817;method_54125()Lnet/minecraft/class_8816;
      named build Lnet/minecraft/client/gui/screen/PopupScreen$Builder;build()Lnet/minecraft/client/gui/screen/PopupScreen;