Class RecoverWorldDataScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.RecoverWorldDataScreen
- 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 final it.unimi.dsi.fastutil.booleans.BooleanConsumerprivate static final Componentprivate static final Componentprivate static final Componentprivate final MultiLineTextWidgetprivate final LinearLayoutprivate static final org.slf4j.Loggerprivate final Componentprivate final MultiLineTextWidgetprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final intprivate final LevelStorageSource.LevelStorageAccessprivate 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
ConstructorsConstructorDescriptionRecoverWorldDataScreen(Minecraft minecraft, it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, LevelStorageSource.LevelStorageAccess storageAccess) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidattemptRestore(Minecraft minecraft) private ComponentbuildInfo(LevelStorageSource.LevelStorageAccess access, boolean fallback, @Nullable Exception exception) private @Nullable ExceptioncollectIssue(LevelStorageSource.LevelStorageAccess access, boolean useFallback) protected voidinit()voidonClose()protected voidMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, 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, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SCREEN_SIDE_MARGIN
private static final int SCREEN_SIDE_MARGIN- See Also:
-
TITLE
-
BUGTRACKER_BUTTON
-
RESTORE_BUTTON
-
NO_FALLBACK_TOOLTIP
-
DONE_TITLE
-
DONE_SUCCESS
-
DONE_FAILED
-
NO_ISSUES
-
MISSING_FILE
-
callback
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback -
layout
-
message
-
messageWidget
-
issuesWidget
-
storageAccess
-
-
Constructor Details
-
RecoverWorldDataScreen
public RecoverWorldDataScreen(Minecraft minecraft, it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, LevelStorageSource.LevelStorageAccess storageAccess)
-
-
Method Details
-
attemptRestore
-
buildInfo
private Component buildInfo(LevelStorageSource.LevelStorageAccess access, boolean fallback, @Nullable Exception exception) -
collectIssue
private @Nullable Exception collectIssue(LevelStorageSource.LevelStorageAccess access, boolean useFallback) -
init
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
onClose
-