Package net.minecraft.client.gui.screen
Class PopupScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PopupScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name official eyiintermediary net/minecraft/class_8816named net/minecraft/client/gui/screen/PopupScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static final recordNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate final Screenprivate static final intprivate final List<PopupScreen.Button>private static final intprivate final @Nullable Identifierprivate static final intprivate static final intprivate final intprivate final DirectionalLayoutWidgetprivate static final intprivate final Textprivate static final intFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionPopupScreen(Screen backgroundScreen, int width, @Nullable Identifier image, Text title, Text message, List<PopupScreen.Button> buttons, @Nullable Runnable onClosed) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private DirectionalLayoutWidgetprotected voidinit()Called when a screen should be initialized.protected voidvoidCalled when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)beforeScreen.init()orScreen.initTabNavigation()is called.voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, render, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLeyi;a:Lahg;intermediary field_46554Lnet/minecraft/class_8816;field_46554:Lnet/minecraft/class_2960;named BACKGROUND_TEXTURELnet/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 bLeyi;b:Iintermediary field_46555Lnet/minecraft/class_8816;field_46555:Inamed VERTICAL_SPACINGLnet/minecraft/client/gui/screen/PopupScreen;VERTICAL_SPACING:I
-
MARGIN_WIDTH
private static final int MARGIN_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official cLeyi;c:Iintermediary field_46556Lnet/minecraft/class_8816;field_46556:Inamed MARGIN_WIDTHLnet/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 kLeyi;k:Iintermediary field_46557Lnet/minecraft/class_8816;field_46557:Inamed BUTTON_HORIZONTAL_SPACINGLnet/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 lLeyi;l:Iintermediary field_46558Lnet/minecraft/class_8816;field_46558:Inamed IMAGE_WIDTHLnet/minecraft/client/gui/screen/PopupScreen;IMAGE_WIDTH:I
-
IMAGE_HEIGHT
private static final int IMAGE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official mLeyi;m:Iintermediary field_46559Lnet/minecraft/class_8816;field_46559:Inamed IMAGE_HEIGHTLnet/minecraft/client/gui/screen/PopupScreen;IMAGE_HEIGHT:I
-
DEFAULT_WIDTH
private static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official nLeyi;n:Iintermediary field_46560Lnet/minecraft/class_8816;field_46560:Inamed DEFAULT_WIDTHLnet/minecraft/client/gui/screen/PopupScreen;DEFAULT_WIDTH:I
-
backgroundScreen
- Mappings:
Namespace Name Mixin selector official oLeyi;o:Lfdb;intermediary field_46561Lnet/minecraft/class_8816;field_46561:Lnet/minecraft/class_437;named backgroundScreenLnet/minecraft/client/gui/screen/PopupScreen;backgroundScreen:Lnet/minecraft/client/gui/screen/Screen;
-
image
- Mappings:
Namespace Name Mixin selector official pLeyi;p:Lahg;intermediary field_46562Lnet/minecraft/class_8816;field_46562:Lnet/minecraft/class_2960;named imageLnet/minecraft/client/gui/screen/PopupScreen;image:Lnet/minecraft/util/Identifier;
-
message
- Mappings:
Namespace Name Mixin selector official qLeyi;q:Lvf;intermediary field_46563Lnet/minecraft/class_8816;field_46563:Lnet/minecraft/class_2561;named messageLnet/minecraft/client/gui/screen/PopupScreen;message:Lnet/minecraft/text/Text;
-
buttons
- Mappings:
Namespace Name Mixin selector official rLeyi;r:Ljava/util/List;intermediary field_46564Lnet/minecraft/class_8816;field_46564:Ljava/util/List;named buttonsLnet/minecraft/client/gui/screen/PopupScreen;buttons:Ljava/util/List;
-
onClosed
- Mappings:
Namespace Name Mixin selector official tLeyi;t:Ljava/lang/Runnable;intermediary field_46565Lnet/minecraft/class_8816;field_46565:Ljava/lang/Runnable;named onClosedLnet/minecraft/client/gui/screen/PopupScreen;onClosed:Ljava/lang/Runnable;
-
innerWidth
private final int innerWidth- Mappings:
Namespace Name Mixin selector official uLeyi;u:Iintermediary field_46566Lnet/minecraft/class_8816;field_46566:Inamed innerWidthLnet/minecraft/client/gui/screen/PopupScreen;innerWidth:I
-
layout
- Mappings:
Namespace Name Mixin selector official vLeyi;v:Lfau;intermediary field_46567Lnet/minecraft/class_8816;field_46567:Lnet/minecraft/class_8667;named layoutLnet/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;)Vintermediary <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;)Vnamed <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()Called when the screen is displayed usingMinecraftClient.setScreen(net.minecraft.client.gui.screen.Screen)beforeScreen.init()orScreen.initTabNavigation()is called.- Overrides:
onDisplayedin classScreen- Mappings:
Namespace Name Mixin selector official aF_Lfdb;aF_()Vintermediary method_49589Lnet/minecraft/class_437;method_49589()Vnamed onDisplayedLnet/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. -
createButtonLayout
- Mappings:
Namespace Name Mixin selector official nLeyi;n()Lfau;intermediary method_54124Lnet/minecraft/class_8816;method_54124()Lnet/minecraft/class_8667;named createButtonLayoutLnet/minecraft/client/gui/screen/PopupScreen;createButtonLayout()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector official bLfdb;b(Lewu;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector official hLfdb;h()Lvf;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-
close
public void close()
-