net.minecraft.client.gui.screen

public class PopupScreen

extends Screen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

net.minecraft.client.gui.components.PopupScreen
net.minecraft.class_8816
net.minecraft.client.gui.screen.PopupScreen

Field summary

Modifier and TypeField
private static final Identifier
BACKGROUND_SPRITE
field_46554
BACKGROUND_TEXTURE
private static final int
SPACING
field_46555
VERTICAL_SPACING
private static final int
BG_BORDER_WITH_SPACING
field_46556
MARGIN_WIDTH
private static final int
BUTTON_SPACING
field_46557
BUTTON_HORIZONTAL_SPACING
private static final int
IMAGE_SIZE_X
field_46558
IMAGE_WIDTH
private static final int
IMAGE_SIZE_Y
field_46559
IMAGE_HEIGHT
private static final int
POPUP_DEFAULT_WIDTH
field_46560
DEFAULT_WIDTH
private final Screen
backgroundScreen
field_46561
backgroundScreen
private final Identifier
image
field_46562
image
private final List<Text>
messages
field_46563
message
private final List<PopupScreen$Button>
buttons
field_46564
buttons
private final Runnable
onClose
field_46565
onClosed
private final int
contentWidth
field_46566
innerWidth
private final DirectionalLayoutWidget
layout
field_46567
layout

Constructor summary

ModifierConstructor
private (Screen backgroundScreen, int width, Identifier image, Text title, List<Text> message, List<PopupScreen$Button> buttons, Runnable onClosed)

Method summary

Modifier and TypeMethod
public void
added()
method_49589()
onDisplayed()
protected void
init()
method_25426()
init()
private DirectionalLayoutWidget
buildButtonRow()
method_54124()
createButtonLayout()
protected void
repositionElements()
method_48640()
refreshWidgetPositions()
public void
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
public Text
getNarrationMessage()
method_25435()
getNarratedTitle()
public void
onClose()
method_25419()
close()
private void
lambda$buildButtonRow$0(PopupScreen$ButtonOption arg0, Button arg1)
method_54122(class_8816$class_8818 arg0, class_4185 arg1)
method_54122(PopupScreen$Button arg0, ButtonWidget button)
private static void
lambda$init$1(PopupScreen arg0, AbstractWidget arg1)
method_54123(class_8816 arg0, class_339 arg1)
method_54123(PopupScreen arg0, ClickableWidget child)
private void
lambda$init$0(Component arg0)
method_1_1372(class_2561 arg0)
method_1_1372(Text text)