Class LoadingErrorScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.ErrorScreen
net.neoforged.neoforge.client.gui.LoadingErrorScreen
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement

@Internal public class LoadingErrorScreen extends net.minecraft.client.gui.screens.ErrorScreen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final record 
     
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @Nullable Path
     
     
    private net.minecraft.network.chat.Component
     
    private final Path
     
    private static final org.apache.logging.log4j.Logger
     
     
     
    private final Path
     
    private final Runnable
     
    private net.minecraft.network.chat.Component
     

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoadingErrorScreen(List<net.neoforged.fml.ModLoadingIssue> issues, @Nullable File dumpedLocation, Runnable nextScreenTask)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    drawMultiLineCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font fr, net.minecraft.network.chat.Component str, int x, int y)
     
    void
     
    void
    render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
     

    Methods inherited from class net.minecraft.client.gui.screens.ErrorScreen

    renderBackground, shouldCloseOnEsc

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    getBorderForArrowNavigation, mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • modsDir

      private final Path modsDir
    • logFile

      private final Path logFile
    • modLoadErrors

      private final List<LoadingErrorScreen.FormattedIssue> modLoadErrors
    • modLoadWarnings

      private final List<LoadingErrorScreen.FormattedIssue> modLoadWarnings
    • dumpedLocation

      @Nullable private final @Nullable Path dumpedLocation
    • nextScreenTask

      private final Runnable nextScreenTask
    • entryList

    • errorHeader

      private net.minecraft.network.chat.Component errorHeader
    • warningHeader

      private net.minecraft.network.chat.Component warningHeader
  • Constructor Details

    • LoadingErrorScreen

      public LoadingErrorScreen(List<net.neoforged.fml.ModLoadingIssue> issues, @Nullable @Nullable File dumpedLocation, Runnable nextScreenTask)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.ErrorScreen
    • render

      public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.ErrorScreen
    • drawMultiLineCenteredString

      private void drawMultiLineCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font fr, net.minecraft.network.chat.Component str, int x, int y)