Interface EarlyLoadingScreenController
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
ImmediateWindowProvider
Interface for use by NeoForge to control the early loading screen.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA platform-independent snapshot of the early window's presentation state. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()voidClears all current progress in preparation for drawing a Minecraft overlay on top of the loading screen.current()Gets the current loading screen controller.handOverToMinecraft(Supplier<Object> renderBackend) Hands over control of the early loading screen to Minecraft, destroys the ELS' own window and restarts its rendering with the provided backend on the window spawned by vanilla.voidAfter callinghandOverToMinecraft(Supplier)to take control of the ELS, the game may still want to periodically ask the loading screen to update itself independently.voidStop polling SDL events prior to vanilla window creation.voidupdateProgress(String label) Sets a label for the main progress bar on the early loading screen.
-
Method Details
-
current
Gets the current loading screen controller. -
stopEventPolling
void stopEventPolling()Stop polling SDL events prior to vanilla window creation. -
handOverToMinecraft
Hands over control of the early loading screen to Minecraft, destroys the ELS' own window and restarts its rendering with the provided backend on the window spawned by vanilla.- Returns:
- the state of the ELS window to be applied to the vanilla window
-
periodicTick
void periodicTick()After callinghandOverToMinecraft(Supplier)to take control of the ELS, the game may still want to periodically ask the loading screen to update itself independently. It will call this method to do so. -
updateProgress
Sets a label for the main progress bar on the early loading screen. -
completeProgress
void completeProgress()Clears all current progress in preparation for drawing a Minecraft overlay on top of the loading screen. -
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-