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 named net/minecraft/client/gui/screen/PopupScreenintermediary net/minecraft/class_8816official fjo
-
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, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, 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 usingbeforeinvalid reference
MinecraftClient#setScreeninit()orinitTabNavigation()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, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, refreshNarrator, remove, removed, render, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, 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, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector named BACKGROUND_TEXTURELnet/minecraft/client/gui/screen/PopupScreen;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_46554Lnet/minecraft/class_8816;field_46554:Lnet/minecraft/class_2960;official aLfjo;a:Lakr;
-
VERTICAL_SPACING
private static final int VERTICAL_SPACING- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_SPACINGLnet/minecraft/client/gui/screen/PopupScreen;VERTICAL_SPACING:Iintermediary field_46555Lnet/minecraft/class_8816;field_46555:Iofficial bLfjo;b:I
-
MARGIN_WIDTH
private static final int MARGIN_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named MARGIN_WIDTHLnet/minecraft/client/gui/screen/PopupScreen;MARGIN_WIDTH:Iintermediary field_46556Lnet/minecraft/class_8816;field_46556:Iofficial cLfjo;c:I
-
BUTTON_HORIZONTAL_SPACING
private static final int BUTTON_HORIZONTAL_SPACING- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTON_HORIZONTAL_SPACINGLnet/minecraft/client/gui/screen/PopupScreen;BUTTON_HORIZONTAL_SPACING:Iintermediary field_46557Lnet/minecraft/class_8816;field_46557:Iofficial rLfjo;r:I
-
IMAGE_WIDTH
private static final int IMAGE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named IMAGE_WIDTHLnet/minecraft/client/gui/screen/PopupScreen;IMAGE_WIDTH:Iintermediary field_46558Lnet/minecraft/class_8816;field_46558:Iofficial sLfjo;s:I
-
IMAGE_HEIGHT
private static final int IMAGE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named IMAGE_HEIGHTLnet/minecraft/client/gui/screen/PopupScreen;IMAGE_HEIGHT:Iintermediary field_46559Lnet/minecraft/class_8816;field_46559:Iofficial uLfjo;u:I
-
DEFAULT_WIDTH
private static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WIDTHLnet/minecraft/client/gui/screen/PopupScreen;DEFAULT_WIDTH:Iintermediary field_46560Lnet/minecraft/class_8816;field_46560:Iofficial vLfjo;v:I
-
backgroundScreen
- Mappings:
Namespace Name Mixin selector named backgroundScreenLnet/minecraft/client/gui/screen/PopupScreen;backgroundScreen:Lnet/minecraft/client/gui/screen/Screen;intermediary field_46561Lnet/minecraft/class_8816;field_46561:Lnet/minecraft/class_437;official wLfjo;w:Lfod;
-
image
- Mappings:
Namespace Name Mixin selector named imageLnet/minecraft/client/gui/screen/PopupScreen;image:Lnet/minecraft/util/Identifier;intermediary field_46562Lnet/minecraft/class_8816;field_46562:Lnet/minecraft/class_2960;official xLfjo;x:Lakr;
-
message
- Mappings:
Namespace Name Mixin selector named messageLnet/minecraft/client/gui/screen/PopupScreen;message:Lnet/minecraft/text/Text;intermediary field_46563Lnet/minecraft/class_8816;field_46563:Lnet/minecraft/class_2561;official yLfjo;y:Lwz;
-
buttons
- Mappings:
Namespace Name Mixin selector named buttonsLnet/minecraft/client/gui/screen/PopupScreen;buttons:Ljava/util/List;intermediary field_46564Lnet/minecraft/class_8816;field_46564:Ljava/util/List;official zLfjo;z:Ljava/util/List;
-
onClosed
- Mappings:
Namespace Name Mixin selector named onClosedLnet/minecraft/client/gui/screen/PopupScreen;onClosed:Ljava/lang/Runnable;intermediary field_46565Lnet/minecraft/class_8816;field_46565:Ljava/lang/Runnable;official ALfjo;A:Ljava/lang/Runnable;
-
innerWidth
private final int innerWidth- Mappings:
Namespace Name Mixin selector named innerWidthLnet/minecraft/client/gui/screen/PopupScreen;innerWidth:Iintermediary field_46566Lnet/minecraft/class_8816;field_46566:Iofficial BLfjo;B:I
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/PopupScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;intermediary field_46567Lnet/minecraft/class_8816;field_46567:Lnet/minecraft/class_8667;official CLfjo;C:Lfmd;
-
-
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 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;)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;)Vofficial <init>Lfjo;<init>(Lfod;ILakr;Lwz;Lwz;Ljava/util/List;Ljava/lang/Runnable;)V
-
-
Method Details
-
onDisplayed
public void onDisplayed()Called when the screen is displayed usingbeforeinvalid reference
MinecraftClient#setScreeninit()orinitTabNavigation()is called.- Overrides:
onDisplayedin classScreen- Mappings:
Namespace Name Mixin selector named onDisplayedLnet/minecraft/client/gui/screen/Screen;onDisplayed()Vintermediary method_49589Lnet/minecraft/class_437;method_49589()Vofficial aL_Lfod;aL_()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()to set the element that is initially focused. -
createButtonLayout
- Mappings:
Namespace Name Mixin selector named createButtonLayoutLnet/minecraft/client/gui/screen/PopupScreen;createButtonLayout()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;intermediary method_54124Lnet/minecraft/class_8816;method_54124()Lnet/minecraft/class_8667;official mLfjo;m()Lfmd;
-
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 named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLfod;b(Lfhz;IIF)V
-
getNarratedTitle
- Overrides:
getNarratedTitlein classScreen- Mappings:
Namespace Name Mixin selector named getNarratedTitleLnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;intermediary method_25435Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;official iLfod;i()Lwz;
-
close
public void close()
-