Package net.minecraft.client.gui.screens
Class LevelLoadingScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.LevelLoadingScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TextureAtlasSpriteprivate static final it.unimi.dsi.fastutil.objects.Object2IntMap<ChunkStatus> private static final Componentprivate longprivate LevelLoadTrackerprivate static final longprivate static final intprivate static final Componentprivate LevelLoadingScreen.Reasonprivate floatFields inherited from class net.minecraft.client.gui.screens.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
ConstructorsConstructorDescriptionLevelLoadingScreen(LevelLoadTracker loadTracker, LevelLoadingScreen.Reason reason) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawProgressBar(GuiGraphics guiGraphics, int x, int y, int width, int height, float progress) private TextureAtlasSpritebooleanvoidonClose()voidrender(GuiGraphics p_283534_, int p_96146_, int p_96147_, float p_96148_) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics p_433649_, int p_434938_, int p_434020_, float p_432747_) static voidrenderChunks(GuiGraphics guiGraphics, int x, int y, int size, int spacing, ChunkLoadStatusView statusView) booleanprotected booleanvoidtick()voidupdate(LevelLoadTracker laodTracker, LevelLoadingScreen.Reason reason) protected voidupdateNarratedWidget(NarrationElementOutput p_169312_) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, showsActiveEffects, triggerImmediateNarration, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DOWNLOADING_TERRAIN_TEXT
-
READY_TO_PLAY_TEXT
-
NARRATION_DELAY_MS
private static final long NARRATION_DELAY_MS- See Also:
-
PROGRESS_BAR_WIDTH
private static final int PROGRESS_BAR_WIDTH- See Also:
-
loadTracker
-
smoothedProgress
private float smoothedProgress -
lastNarration
private long lastNarration -
reason
-
cachedNetherPortalSprite
-
COLORS
-
-
Constructor Details
-
LevelLoadingScreen
-
-
Method Details
-
update
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
updateNarratedWidget
- Overrides:
updateNarratedWidgetin classScreen
-
tick
public void tick() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_283534_- the GuiGraphics object used for rendering.p_96146_- the x-coordinate of the mouse cursor.p_96147_- the y-coordinate of the mouse cursor.p_96148_- the partial tick time.
-
drawProgressBar
private void drawProgressBar(GuiGraphics guiGraphics, int x, int y, int width, int height, float progress) -
renderChunks
public static void renderChunks(GuiGraphics guiGraphics, int x, int y, int size, int spacing, ChunkLoadStatusView statusView) -
renderBackground
- Overrides:
renderBackgroundin classScreen
-
getNetherPortalSprite
-
onClose
public void onClose() -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-