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
named net/minecraft/client/gui/screen/PopupScreen$Builder
intermediary net/minecraft/class_8816$class_8817
official fph$a
  • Field Details

    • backgroundScreen

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

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

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

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

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

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

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

    • Builder

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

    • width

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

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

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

      public PopupScreen.Builder button(Text message, Consumer<PopupScreen> action)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Lfph$a;a(Lxv;Ljava/util/function/Consumer;)Lfph$a;
    • onClosed

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

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