Package net.minecraft.client.gui.screens
Class PopupScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.PopupScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Widget
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intprivate static intprivate static intprivate com.google.common.collect.ImmutableList<PopupScreen.ButtonOption>private intprivate intprivate FormattedTextprivate MultiLineLabelprivate ComponentFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPopupScreen(Component p_96345_, List<Component> p_96346_, com.google.common.collect.ImmutableList<PopupScreen.ButtonOption> p_96347_) -
Method Summary
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
BUTTON_PADDING
private static final int BUTTON_PADDING- See Also:
- Constant Field Values
-
BUTTON_MARGIN
private static final int BUTTON_MARGIN- See Also:
- Constant Field Values
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- See Also:
- Constant Field Values
-
narrationMessage
-
message
-
buttonOptions
-
messageLines
-
contentTop
private int contentTop -
buttonWidth
private int buttonWidth
-
-
Constructor Details
-
PopupScreen
protected PopupScreen(Component p_96345_, List<Component> p_96346_, com.google.common.collect.ImmutableList<PopupScreen.ButtonOption> p_96347_)
-
-
Method Details
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
init
public void init() -
render
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-