Class CrashReportCallables

java.lang.Object
net.minecraftforge.fml.CrashReportCallables

public class CrashReportCallables extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • crashCallables

      private static final List<ISystemReportExtender> crashCallables
  • Constructor Details

    • CrashReportCallables

      public CrashReportCallables()
  • Method Details

    • registerCrashCallable

      public static void registerCrashCallable(ISystemReportExtender callable)
      Register a custom ISystemReportExtender
    • registerCrashCallable

      public static void registerCrashCallable(String headerName, Supplier<String> reportGenerator)
      Register a system report extender with the given header name and content generator, which will always be appended to the system report
      Parameters:
      headerName - The name of the system report entry
      reportGenerator - The report generator to be called when a crash report is built
    • registerCrashCallable

      public static void registerCrashCallable(String headerName, Supplier<String> reportGenerator, BooleanSupplier active)
      Register a system report extender with the given header name and content generator, which will only be appended to the system report when the given BooleanSupplier returns true
      Parameters:
      headerName - The name of the system report entry
      reportGenerator - The report generator to be called when a crash report is built
      active - The supplier of the flag to be checked when a crash report is built
    • allCrashCallables

      public static List<ISystemReportExtender> allCrashCallables()