类 CrashReportCallables
java.lang.Object
net.minecraftforge.fml.CrashReportCallables
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static 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
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
crashCallables
-
-
构造器详细资料
-
CrashReportCallables
public CrashReportCallables()
-
-
方法详细资料
-
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- 参数:
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- 参数:
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
-