Package net.minecraftforge.fml
Class CrashReportCallables
java.lang.Object
net.minecraftforge.fml.CrashReportCallables
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final List
<ISystemReportExtender> private static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ISystemReportExtender> static void
registerCrashCallable
(String headerName, Supplier<String> reportGenerator) Register asystem report extender
with the given header name and content generator, which will always be appended to the system reportstatic void
registerCrashCallable
(String headerName, Supplier<String> reportGenerator, BooleanSupplier active) Register asystem report extender
with the given header name and content generator, which will only be appended to the system report when the givenBooleanSupplier
returns truestatic void
registerCrashCallable
(ISystemReportExtender callable) Register a customISystemReportExtender
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
crashCallables
-
-
Constructor Details
-
CrashReportCallables
public CrashReportCallables()
-
-
Method Details
-
registerCrashCallable
Register a customISystemReportExtender
-
registerCrashCallable
Register asystem 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 entryreportGenerator
- 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 asystem report extender
with the given header name and content generator, which will only be appended to the system report when the givenBooleanSupplier
returns true- Parameters:
headerName
- The name of the system report entryreportGenerator
- The report generator to be called when a crash report is builtactive
- The supplier of the flag to be checked when a crash report is built
-
allCrashCallables
-