Interface EarlyLoadingScreenController

All Superinterfaces:
AutoCloseable, Closeable
All Known Subinterfaces:
ImmediateWindowProvider

public interface EarlyLoadingScreenController extends Closeable
Interface for use by NeoForge to control 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

      EarlyLoadingScreenController.WindowState 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.
      Returns:
      the state of the ELS window to be applied to the vanilla window
    • periodicTick

      void periodicTick()
      After calling handOverToMinecraft(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

      void updateProgress(String label)
      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:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable