Class PauseScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.PauseScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Tooltipprivate @Nullable Buttonprivate static final Identifierprivate static final Componentprivate static final Componentprivate static final intprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate final booleanprivate static final ComponentFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddFeedbackButtons(Screen screen, GridLayout.RowHelper helper) private voidaddFeedbackSubscreenAndCustomDialogButtons(Minecraft minecraft, Holder<Dialog> dialog, GridLayout.RowHelper helper) private voidvoidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) voidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected voidinit()private static ButtonopenLinkButton(Screen screen, Component message, URI link) private ButtonopenScreenButton(Component message, Supplier<Screen> newScreen) booleanbooleanvoidtick()Methods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
DRAFT_REPORT_SPRITE
-
COLUMNS
private static final int COLUMNS- See Also:
-
MENU_PADDING_TOP
private static final int MENU_PADDING_TOP- See Also:
-
BUTTON_PADDING
private static final int BUTTON_PADDING- See Also:
-
BUTTON_WIDTH_FULL
private static final int BUTTON_WIDTH_FULL- See Also:
-
BUTTON_WIDTH_HALF
private static final int BUTTON_WIDTH_HALF- See Also:
-
RETURN_TO_GAME
-
ADVANCEMENTS
-
STATS
-
SEND_FEEDBACK
-
REPORT_BUGS
-
FEEDBACK_SUBSCREEN
-
OPTIONS
-
SHARE_TO_LAN
-
PLAYER_REPORTING
-
GAME
-
PAUSED
-
CUSTOM_OPTIONS_TOOLTIP
-
showPauseMenu
private final boolean showPauseMenu -
disconnectButton
-
-
Constructor Details
-
PauseScreen
public PauseScreen(boolean showPauseMenu)
-
-
Method Details
-
showsPauseMenu
public boolean showsPauseMenu() -
init
-
createPauseMenu
private void createPauseMenu() -
getCustomAdditions
-
addFeedbackButtons
-
addFeedbackSubscreenAndCustomDialogButtons
private void addFeedbackSubscreenAndCustomDialogButtons(Minecraft minecraft, Holder<Dialog> dialog, GridLayout.RowHelper helper) -
tick
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-
rendersNowPlayingToast
public boolean rendersNowPlayingToast() -
openScreenButton
-
openLinkButton
-