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/PopupScreen
intermediary net/minecraft/class_8816
official fph
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static final record
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Identifier
private final Screen
private static final int
private final List
<PopupScreen.Button> private static final int
private final @Nullable Identifier
private static final int
private static final int
private final int
private final DirectionalLayoutWidget
private static final int
private final Text
private static final int
Fields 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, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionPopupScreen
(Screen backgroundScreen, int width, @Nullable Identifier image, Text title, Text message, List<PopupScreen.Button> buttons, @Nullable Runnable onClosed) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private DirectionalLayoutWidget
protected void
init()
Called when a screen should be initialized.void
Called when the screen is displayed usinginvalid reference
MinecraftClient#setScreen
init()
orinvalid reference
#initTabNavigation()
protected void
void
renderBackground
(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, filesDragged, findSelectedElementData, getMusic, getNavigationFocus, getTextRenderer, 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, shouldHideStatusEffectHud, shouldPause, switchFocus, tick, updateNarrator
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods 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_TEXTURE
Lnet/minecraft/client/gui/screen/PopupScreen;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_46554
Lnet/minecraft/class_8816;field_46554:Lnet/minecraft/class_2960;
official a
Lfph;a:Lalz;
-
VERTICAL_SPACING
private static final int VERTICAL_SPACING- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_SPACING
Lnet/minecraft/client/gui/screen/PopupScreen;VERTICAL_SPACING:I
intermediary field_46555
Lnet/minecraft/class_8816;field_46555:I
official b
Lfph;b:I
-
MARGIN_WIDTH
private static final int MARGIN_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named MARGIN_WIDTH
Lnet/minecraft/client/gui/screen/PopupScreen;MARGIN_WIDTH:I
intermediary field_46556
Lnet/minecraft/class_8816;field_46556:I
official c
Lfph;c:I
-
BUTTON_HORIZONTAL_SPACING
private static final int BUTTON_HORIZONTAL_SPACING- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTON_HORIZONTAL_SPACING
Lnet/minecraft/client/gui/screen/PopupScreen;BUTTON_HORIZONTAL_SPACING:I
intermediary field_46557
Lnet/minecraft/class_8816;field_46557:I
official d
Lfph;d:I
-
IMAGE_WIDTH
private static final int IMAGE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named IMAGE_WIDTH
Lnet/minecraft/client/gui/screen/PopupScreen;IMAGE_WIDTH:I
intermediary field_46558
Lnet/minecraft/class_8816;field_46558:I
official s
Lfph;s:I
-
IMAGE_HEIGHT
private static final int IMAGE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named IMAGE_HEIGHT
Lnet/minecraft/client/gui/screen/PopupScreen;IMAGE_HEIGHT:I
intermediary field_46559
Lnet/minecraft/class_8816;field_46559:I
official u
Lfph;u:I
-
DEFAULT_WIDTH
private static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_WIDTH
Lnet/minecraft/client/gui/screen/PopupScreen;DEFAULT_WIDTH:I
intermediary field_46560
Lnet/minecraft/class_8816;field_46560:I
official v
Lfph;v:I
-
backgroundScreen
- Mappings:
Namespace Name Mixin selector named backgroundScreen
Lnet/minecraft/client/gui/screen/PopupScreen;backgroundScreen:Lnet/minecraft/client/gui/screen/Screen;
intermediary field_46561
Lnet/minecraft/class_8816;field_46561:Lnet/minecraft/class_437;
official w
Lfph;w:Lftx;
-
image
- Mappings:
Namespace Name Mixin selector named image
Lnet/minecraft/client/gui/screen/PopupScreen;image:Lnet/minecraft/util/Identifier;
intermediary field_46562
Lnet/minecraft/class_8816;field_46562:Lnet/minecraft/class_2960;
official x
Lfph;x:Lalz;
-
message
- Mappings:
Namespace Name Mixin selector named message
Lnet/minecraft/client/gui/screen/PopupScreen;message:Lnet/minecraft/text/Text;
intermediary field_46563
Lnet/minecraft/class_8816;field_46563:Lnet/minecraft/class_2561;
official y
Lfph;y:Lxv;
-
buttons
- Mappings:
Namespace Name Mixin selector named buttons
Lnet/minecraft/client/gui/screen/PopupScreen;buttons:Ljava/util/List;
intermediary field_46564
Lnet/minecraft/class_8816;field_46564:Ljava/util/List;
official z
Lfph;z:Ljava/util/List;
-
onClosed
- Mappings:
Namespace Name Mixin selector named onClosed
Lnet/minecraft/client/gui/screen/PopupScreen;onClosed:Ljava/lang/Runnable;
intermediary field_46565
Lnet/minecraft/class_8816;field_46565:Ljava/lang/Runnable;
official A
Lfph;A:Ljava/lang/Runnable;
-
innerWidth
private final int innerWidth- Mappings:
Namespace Name Mixin selector named innerWidth
Lnet/minecraft/client/gui/screen/PopupScreen;innerWidth:I
intermediary field_46566
Lnet/minecraft/class_8816;field_46566:I
official B
Lfph;B:I
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/PopupScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
intermediary field_46567
Lnet/minecraft/class_8816;field_46567:Lnet/minecraft/class_8667;
official C
Lfph;C:Lfrx;
-
-
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;)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
official <init>
Lfph;<init>(Lftx;ILalz;Lxv;Lxv;Ljava/util/List;Ljava/lang/Runnable;)V
-
-
Method Details
-
onDisplayed
public void onDisplayed()Called when the screen is displayed usinginvalid reference
MinecraftClient#setScreen
init()
orinvalid reference
#initTabNavigation()
- Overrides:
onDisplayed
in classScreen
- Mappings:
Namespace Name Mixin selector named onDisplayed
Lnet/minecraft/client/gui/screen/Screen;onDisplayed()V
intermediary method_49589
Lnet/minecraft/class_437;method_49589()V
official aK_
Lftx;aK_()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 createButtonLayout
Lnet/minecraft/client/gui/screen/PopupScreen;createButtonLayout()Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
intermediary method_54124
Lnet/minecraft/class_8816;method_54124()Lnet/minecraft/class_8667;
official l
Lfph;l()Lfrx;
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositions
in classScreen
- Mappings:
Namespace Name Mixin selector named refreshWidgetPositions
Lnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()V
intermediary method_48640
Lnet/minecraft/class_437;method_48640()V
official c
Lftx;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:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lftx;b(Lfnr;IIF)V
-
getNarratedTitle
- Overrides:
getNarratedTitle
in classScreen
- Mappings:
Namespace Name Mixin selector named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
official i
Lftx;i()Lxv;
-
close
public void close()
-