Package net.minecraft.client.gui.screens
Class ProgressScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.ProgressScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,ProgressListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate Componentprivate intprivate Componentprivate booleanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprogressStage(Component pComponent) voidprogressStagePercentage(int pProgress) Updates the progress bar on the loading screen to the specified amount.voidprogressStart(Component pComponent) voidprogressStartNoAbort(Component pComponent) voidrender(GuiGraphics p_283582_, int p_96516_, int p_96517_, float p_96518_) Renders the graphical user interface (GUI) element.booleanprotected booleanvoidstop()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, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, 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
-
header
-
stage
-
progress
private int progress -
stop
private boolean stop -
clearScreenAfterStop
private final boolean clearScreenAfterStop
-
-
Constructor Details
-
ProgressScreen
public ProgressScreen(boolean pClearScreenAfterStop)
-
-
Method Details
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
progressStartNoAbort
- Specified by:
progressStartNoAbortin interfaceProgressListener
-
progressStart
- Specified by:
progressStartin interfaceProgressListener
-
progressStage
- Specified by:
progressStagein interfaceProgressListener
-
progressStagePercentage
public void progressStagePercentage(int pProgress) Updates the progress bar on the loading screen to the specified amount.- Specified by:
progressStagePercentagein interfaceProgressListener
-
stop
public void stop()- Specified by:
stopin interfaceProgressListener
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_283582_- the GuiGraphics object used for rendering.p_96516_- the x-coordinate of the mouse cursor.p_96517_- the y-coordinate of the mouse cursor.p_96518_- the partial tick time.
-