Class NeoForgeLoadingOverlay

All Implemented Interfaces:
Renderable

public class NeoForgeLoadingOverlay extends LoadingOverlay
This is an implementation of the LoadingOverlay that calls back into the early window rendering, as part of the game loading cycle. We completely replace the render(GuiGraphics, int, int, float) call from the parent with one of our own, that allows us to blend our early loading screen into the main window, in the same manner as the Mojang screen. It also allows us to see and tick appropriately as the later stages of the loading system run.

It is somewhat a copy of the superclass render method.

  • Field Details

    • LOADING_OVERLAY_TEXTURE_ID

      public static final ResourceLocation LOADING_OVERLAY_TEXTURE_ID
    • minecraft

      private final Minecraft minecraft
    • reload

      private final ReloadInstance reload
    • onFinish

      private final Consumer<Optional<Throwable>> onFinish
    • displayWindow

      private final net.neoforged.fml.earlydisplay.DisplayWindow displayWindow
    • progressMeter

      private final net.neoforged.fml.loading.progress.ProgressMeter progressMeter
    • framebuffer

      private final GpuTexture framebuffer
    • currentProgress

      private float currentProgress
    • fadeOutStart

      private long fadeOutStart
  • Constructor Details

  • Method Details