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 fpw
-
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.voidCalled when the screen is displayed usingbeforeinvalid reference
MinecraftClient#setScreeninit()oris called.invalid reference
#initTabNavigation()protected voidvoidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onFilesDropped, refreshNarrator, remove, removed, render, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, tick, updateNarratorMethods 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
getBorder, 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 aLfpw;a:Lakv;
-
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 bLfpw;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 cLfpw;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 dLfpw;d: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 sLfpw;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 uLfpw;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 vLfpw;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 wLfpw;w:Lfum;
-
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 xLfpw;x:Lakv;
-
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 yLfpw;y:Lwp;
-
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 zLfpw;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 ALfpw;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 BLfpw;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 CLfpw;C:Lfsm;
-
-
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>Lfpw;<init>(Lfum;ILakv;Lwp;Lwp;Ljava/util/List;Ljava/lang/Runnable;)V
-
-
Method Details
-
onDisplayed
public void onDisplayed()Called when the screen is displayed usingbeforeinvalid reference
MinecraftClient#setScreeninit()oris called.invalid reference
#initTabNavigation()- 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 aJ_Lfum;aJ_()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
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 mLfpw;m()Lfsm;
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLfum;c()V
-
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 bLfum;b(Lfof;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 iLfum;i()Lwp;
-
close
public void close()
-