Class PopupScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class PopupScreen extends Screen
Mappings:
Namespace Name
official eyi
intermediary net/minecraft/class_8816
named net/minecraft/client/gui/screen/PopupScreen
  • Field Details

    • BACKGROUND_TEXTURE

      private static final Identifier BACKGROUND_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official a Leyi;a:Lahg;
      intermediary field_46554 Lnet/minecraft/class_8816;field_46554:Lnet/minecraft/class_2960;
      named BACKGROUND_TEXTURE Lnet/minecraft/client/gui/screen/PopupScreen;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
    • VERTICAL_SPACING

      private static final int VERTICAL_SPACING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leyi;b:I
      intermediary field_46555 Lnet/minecraft/class_8816;field_46555:I
      named VERTICAL_SPACING Lnet/minecraft/client/gui/screen/PopupScreen;VERTICAL_SPACING:I
    • MARGIN_WIDTH

      private static final int MARGIN_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leyi;c:I
      intermediary field_46556 Lnet/minecraft/class_8816;field_46556:I
      named MARGIN_WIDTH Lnet/minecraft/client/gui/screen/PopupScreen;MARGIN_WIDTH:I
    • BUTTON_HORIZONTAL_SPACING

      private static final int BUTTON_HORIZONTAL_SPACING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Leyi;k:I
      intermediary field_46557 Lnet/minecraft/class_8816;field_46557:I
      named BUTTON_HORIZONTAL_SPACING Lnet/minecraft/client/gui/screen/PopupScreen;BUTTON_HORIZONTAL_SPACING:I
    • IMAGE_WIDTH

      private static final int IMAGE_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Leyi;l:I
      intermediary field_46558 Lnet/minecraft/class_8816;field_46558:I
      named IMAGE_WIDTH Lnet/minecraft/client/gui/screen/PopupScreen;IMAGE_WIDTH:I
    • IMAGE_HEIGHT

      private static final int IMAGE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Leyi;m:I
      intermediary field_46559 Lnet/minecraft/class_8816;field_46559:I
      named IMAGE_HEIGHT Lnet/minecraft/client/gui/screen/PopupScreen;IMAGE_HEIGHT:I
    • DEFAULT_WIDTH

      private static final int DEFAULT_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Leyi;n:I
      intermediary field_46560 Lnet/minecraft/class_8816;field_46560:I
      named DEFAULT_WIDTH Lnet/minecraft/client/gui/screen/PopupScreen;DEFAULT_WIDTH:I
    • backgroundScreen

      private final Screen backgroundScreen
      Mappings:
      Namespace Name Mixin selector
      official o Leyi;o:Lfdb;
      intermediary field_46561 Lnet/minecraft/class_8816;field_46561:Lnet/minecraft/class_437;
      named backgroundScreen Lnet/minecraft/client/gui/screen/PopupScreen;backgroundScreen:Lnet/minecraft/client/gui/screen/Screen;
    • image

      @Nullable private final @Nullable Identifier image
      Mappings:
      Namespace Name Mixin selector
      official p Leyi;p:Lahg;
      intermediary field_46562 Lnet/minecraft/class_8816;field_46562:Lnet/minecraft/class_2960;
      named image Lnet/minecraft/client/gui/screen/PopupScreen;image:Lnet/minecraft/util/Identifier;
    • message

      private final Text message
      Mappings:
      Namespace Name Mixin selector
      official q Leyi;q:Lvf;
      intermediary field_46563 Lnet/minecraft/class_8816;field_46563:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/client/gui/screen/PopupScreen;message:Lnet/minecraft/text/Text;
    • buttons

      private final List<PopupScreen.Button> buttons
      Mappings:
      Namespace Name Mixin selector
      official r Leyi;r:Ljava/util/List;
      intermediary field_46564 Lnet/minecraft/class_8816;field_46564:Ljava/util/List;
      named buttons Lnet/minecraft/client/gui/screen/PopupScreen;buttons:Ljava/util/List;
    • onClosed

      @Nullable private final @Nullable Runnable onClosed
      Mappings:
      Namespace Name Mixin selector
      official t Leyi;t:Ljava/lang/Runnable;
      intermediary field_46565 Lnet/minecraft/class_8816;field_46565:Ljava/lang/Runnable;
      named onClosed Lnet/minecraft/client/gui/screen/PopupScreen;onClosed:Ljava/lang/Runnable;
    • innerWidth

      private final int innerWidth
      Mappings:
      Namespace Name Mixin selector
      official u Leyi;u:I
      intermediary field_46566 Lnet/minecraft/class_8816;field_46566:I
      named innerWidth Lnet/minecraft/client/gui/screen/PopupScreen;innerWidth:I
    • layout

      private final DirectionalLayoutWidget layout
      Mappings:
      Namespace Name Mixin selector
      official v Leyi;v:Lfau;
      intermediary field_46567 Lnet/minecraft/class_8816;field_46567:Lnet/minecraft/class_8667;
      named layout Lnet/minecraft/client/gui/screen/PopupScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
  • Constructor Details

    • PopupScreen

      PopupScreen(Screen backgroundScreen, int width, @Nullable @Nullable Identifier image, Text title, Text message, List<PopupScreen.Button> buttons, @Nullable @Nullable Runnable onClosed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyi;<init>(Lfdb;ILahg;Lvf;Lvf;Ljava/util/List;Ljava/lang/Runnable;)V
      intermediary <init> Lnet/minecraft/class_8816;<init>(Lnet/minecraft/class_437;ILnet/minecraft/class_2960;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/util/List;Ljava/lang/Runnable;)V
      named <init> Lnet/minecraft/client/gui/screen/PopupScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;ILnet/minecraft/util/Identifier;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Ljava/util/List;Ljava/lang/Runnable;)V
  • Method Details

    • onDisplayed

      public void onDisplayed()
      Overrides:
      onDisplayed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aF_ Lfdb;aF_()V
      intermediary method_49589 Lnet/minecraft/class_437;method_49589()V
      named onDisplayed Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aN_ Lfdb;aN_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • createButtonLayout

      private DirectionalLayoutWidget createButtonLayout()
      Mappings:
      Namespace Name Mixin selector
      official n Leyi;n()Lfau;
      intermediary method_54124 Lnet/minecraft/class_8816;method_54124()Lnet/minecraft/class_8667;
      named createButtonLayout Lnet/minecraft/client/gui/screen/PopupScreen;createButtonLayout()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
    • initTabNavigation

      protected void initTabNavigation()
      Overrides:
      initTabNavigation in class Screen
      Mappings:
      Namespace Name Mixin selector
      official c Lfdb;c()V
      intermediary method_48640 Lnet/minecraft/class_437;method_48640()V
      named initTabNavigation Lnet/minecraft/client/gui/screen/Screen;initTabNavigation()V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Lfdb;b(Lewu;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      official h Lfdb;h()Lvf;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aE_ Lfdb;aE_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named close Lnet/minecraft/client/gui/screen/Screen;close()V