public class CrashReportCategory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CrashReportCategory.Entry |
Modifier and Type | Field and Description |
---|---|
private java.util.List<CrashReportCategory.Entry> |
children |
private CrashReport |
crashReport |
private java.lang.String |
name |
private java.lang.StackTraceElement[] |
stackTrace |
Constructor and Description |
---|
CrashReportCategory(CrashReport report,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
addBlockInfo(CrashReportCategory category,
BlockPos pos,
BlockState state) |
void |
addCrashSectionThrowable(java.lang.String sectionName,
java.lang.Throwable throwable) |
CrashReportCategory |
addDetail(java.lang.String nameIn,
ICrashReportDetail<java.lang.String> detail) |
CrashReportCategory |
addDetail(java.lang.String sectionName,
java.lang.Object value) |
void |
appendToStringBuilder(java.lang.StringBuilder builder) |
boolean |
firstTwoElementsOfStackTraceMatch(java.lang.StackTraceElement s1,
java.lang.StackTraceElement s2) |
static java.lang.String |
getCoordinateInfo(BlockPos pos) |
static java.lang.String |
getCoordinateInfo(double x,
double y,
double z) |
static java.lang.String |
getCoordinateInfo(int x,
int y,
int z) |
int |
getPrunedStackTrace(int size) |
java.lang.StackTraceElement[] |
getStackTrace() |
void |
trimStackTraceEntriesFromBottom(int amount) |
private final CrashReport crashReport
private final java.lang.String name
private final java.util.List<CrashReportCategory.Entry> children
private java.lang.StackTraceElement[] stackTrace
public CrashReportCategory(CrashReport report, java.lang.String name)
public static java.lang.String getCoordinateInfo(double x, double y, double z)
public static java.lang.String getCoordinateInfo(BlockPos pos)
public static java.lang.String getCoordinateInfo(int x, int y, int z)
public CrashReportCategory addDetail(java.lang.String nameIn, ICrashReportDetail<java.lang.String> detail)
public CrashReportCategory addDetail(java.lang.String sectionName, java.lang.Object value)
public void addCrashSectionThrowable(java.lang.String sectionName, java.lang.Throwable throwable)
public int getPrunedStackTrace(int size)
public boolean firstTwoElementsOfStackTraceMatch(java.lang.StackTraceElement s1, java.lang.StackTraceElement s2)
public void trimStackTraceEntriesFromBottom(int amount)
public void appendToStringBuilder(java.lang.StringBuilder builder)
public java.lang.StackTraceElement[] getStackTrace()
public static void addBlockInfo(CrashReportCategory category, BlockPos pos, @Nullable BlockState state)