public class CrashReportSection extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CrashReportSection.Element |
Modifier and Type | Field and Description |
---|---|
private List<CrashReportSection.Element> |
elements |
private CrashReport |
report |
private StackTraceElement[] |
stackTrace |
private String |
title |
Constructor and Description |
---|
CrashReportSection(CrashReport report,
String title) |
Modifier and Type | Method and Description |
---|---|
CrashReportSection |
add(String string,
CrashCallable<String> crashCallable) |
CrashReportSection |
add(String name,
Object object) |
void |
add(String name,
Throwable throwable) |
static void |
addBlockInfo(CrashReportSection element,
BlockPos pos,
BlockState state) |
void |
addStackTrace(StringBuilder stringBuilder) |
static String |
createPositionString(BlockPos pos) |
static String |
createPositionString(double x,
double y,
double z) |
static String |
createPositionString(int x,
int y,
int z) |
StackTraceElement[] |
getStackTrace() |
int |
initStackTrace(int ignoredCallCount) |
boolean |
method_584(StackTraceElement stackTraceElement,
StackTraceElement stackTraceElement2) |
void |
trimStackTraceEnd(int callCount) |
private final CrashReport report
private final String title
private final List<CrashReportSection.Element> elements
private StackTraceElement[] stackTrace
public CrashReportSection(CrashReport report, String title)
@Environment(value=CLIENT) public static String createPositionString(double x, double y, double z)
public static String createPositionString(int x, int y, int z)
public CrashReportSection add(String string, CrashCallable<String> crashCallable)
public CrashReportSection add(String name, Object object)
public int initStackTrace(int ignoredCallCount)
public boolean method_584(StackTraceElement stackTraceElement, StackTraceElement stackTraceElement2)
public void trimStackTraceEnd(int callCount)
public void addStackTrace(StringBuilder stringBuilder)
public StackTraceElement[] getStackTrace()
public static void addBlockInfo(CrashReportSection element, BlockPos pos, @Nullable BlockState state)