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 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 static final Identifierprivate final Runnableprivate @Nullable FriendsButtonprivate static final Componentprivate static final intprivate static final Componentprivate static final Tooltipprivate 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 voidaddCustomDialogButtons(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 booleanvoidonClose()private voidprivate 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, onFilesDrop, 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
-
OPTIONS
-
MULTIPLAYER_OPTIONS
-
PLAYER_REPORTING
-
GAME
-
PAUSED
-
CUSTOM_OPTIONS_TOOLTIP
-
NO_PLAYERS_TO_REPORT_TOOLTIP
-
friendListUpdateListener
-
friends
-
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
-
addCustomDialogButtons
private void addCustomDialogButtons(Minecraft minecraft, Holder<Dialog> dialog, GridLayout.RowHelper helper) -
tick
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-
onClose
-
rendersNowPlayingToast
public boolean rendersNowPlayingToast() -
isTopmostScreen
private boolean isTopmostScreen() -
openScreenButton
-
onFriendListUpdate
private void onFriendListUpdate()
-