public class CrashReportCategory
extends java.lang.Object
Constructor and Description |
---|
CrashReportCategory(CrashReport report,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
addBlockInfo(CrashReportCategory category,
BlockPos pos,
Block blockIn,
int blockData) |
static void |
addBlockInfo(CrashReportCategory category,
BlockPos pos,
IBlockState state) |
void |
addCrashSection(java.lang.String sectionName,
java.lang.Object value)
Adds a Crashreport section with the given name with the given value (convered .toString())
|
void |
addCrashSectionCallable(java.lang.String sectionName,
java.util.concurrent.Callable<java.lang.String> callable)
Adds a Crashreport section with the given name with the value set to the result of the given Callable;
|
void |
addCrashSectionThrowable(java.lang.String sectionName,
java.lang.Throwable throwable)
Adds a Crashreport section with the given name with the given Throwable
|
void |
appendToStringBuilder(java.lang.StringBuilder builder) |
boolean |
firstTwoElementsOfStackTraceMatch(java.lang.StackTraceElement s1,
java.lang.StackTraceElement s2)
Do the deepest two elements of our saved stack trace match the given elements, in order from the deepest?
|
static java.lang.String |
getCoordinateInfo(BlockPos pos) |
static java.lang.String |
getCoordinateInfo(double x,
double y,
double z) |
int |
getPrunedStackTrace(int size)
Resets our stack trace according to the current trace, pruning the deepest 3 entries.
|
java.lang.StackTraceElement[] |
getStackTrace() |
void |
trimStackTraceEntriesFromBottom(int amount)
Removes the given number entries from the bottom of the stack trace.
|
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 void addCrashSectionCallable(java.lang.String sectionName, java.util.concurrent.Callable<java.lang.String> callable)
public void addCrashSection(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, Block blockIn, int blockData)
public static void addBlockInfo(CrashReportCategory category, BlockPos pos, IBlockState state)