public class CrashReportCategory
extends java.lang.Object
コンストラクタと説明 |
---|
CrashReportCategory(CrashReport report,
java.lang.String name) |
修飾子とタイプ | メソッドと説明 |
---|---|
static void |
addBlockInfo(CrashReportCategory category,
BlockPos pos,
BlockState state) |
void |
addCrashSectionThrowable(java.lang.String sectionName,
java.lang.Throwable throwable)
Adds a Crashreport section with the given name with the given Throwable
|
CrashReportCategory |
addDetail(java.lang.String nameIn,
ICrashReportDetail<java.lang.String> detail)
Adds an additional section to this crash report category, resolved by calling the given callable.
|
CrashReportCategory |
addDetail(java.lang.String sectionName,
java.lang.Object value)
Adds a Crashreport section with the given name with the given value (convered .toString())
|
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) |
static java.lang.String |
getCoordinateInfo(int x,
int y,
int 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 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)