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 Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable 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 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 graphics, int left, int top, int width, int height, float progress) private TextureAtlasSpritebooleanvoidonClose()voidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics graphics, int mouseX, int mouseY, float a) static voidrenderChunks(GuiGraphics graphics, int xCenter, int yCenter, int size, int margin, ChunkLoadStatusView statusView) booleanprotected booleanvoidtick()voidupdate(LevelLoadTracker loadTracker, LevelLoadingScreen.Reason reason) 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, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, 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 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
-
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
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- the partial tick time.
-
drawProgressBar
private void drawProgressBar(GuiGraphics graphics, int left, int top, int width, int height, float progress) -
renderChunks
public static void renderChunks(GuiGraphics graphics, int xCenter, int yCenter, int size, int margin, ChunkLoadStatusView statusView) -
renderBackground
- Overrides:
renderBackgroundin classScreen
-
getNetherPortalSprite
-
onClose
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-