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,
HeightLimitView heightLimitView,
BlockPos blockPos,
BlockState blockState) |
void |
addStackTrace(StringBuilder stringBuilder) |
static String |
createPositionString(HeightLimitView heightLimitView,
BlockPos blockPos) |
static String |
createPositionString(HeightLimitView heightLimitView,
double double2,
double double3,
double double4) |
static String |
createPositionString(HeightLimitView heightLimitView,
int int2,
int int3,
int int4) |
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(HeightLimitView heightLimitView, double double2, double double3, double double4)
public static String createPositionString(HeightLimitView heightLimitView, BlockPos blockPos)
public static String createPositionString(HeightLimitView heightLimitView, int int2, int int3, int int4)
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, HeightLimitView heightLimitView, BlockPos blockPos, @Nullable BlockState blockState)