Class CrashReportCategory
java.lang.Object
net.minecraft.CrashReportCategory
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<CrashReportCategory.Entry> private StackTraceElement[]private final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfillInStackTrace(int nestedOffset) Resets our stack trace according to the current trace, pruning the deepest 3 entries.static StringformatLocation(double x, double y, double z) static StringformatLocation(LevelHeightAccessor levelHeightAccessor, double x, double y, double z) static StringformatLocation(LevelHeightAccessor levelHeightAccessor, int x, int y, int z) static StringformatLocation(LevelHeightAccessor levelHeightAccessor, BlockPos pos) voidgetDetails(StringBuilder builder) static voidpopulateBlockDetails(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor, BlockPos pos, BlockState state) static CrashReportCategorypopulateBlockLocationDetails(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor, BlockPos pos) Adds a Crashreport section with the given name with the given value (converted.toString())setDetail(String key, CrashReportDetail<String> callback) Adds a section to this crash report category, resolved by calling the given callable.voidsetDetailError(String key, Throwable t) Adds a Crashreport section with the given name with the given ThrowablevoidsetStackTrace(StackTraceElement[] stackTrace) voidtrimStacktrace(int length) Removes the given number entries from the bottom of the stack trace.booleanvalidateStackTrace(StackTraceElement source, StackTraceElement next) Do the deepest two elements of our saved stack trace match the given elements, in order from the deepest?
-
Field Details
-
title
-
entries
-
stackTrace
-
-
Constructor Details
-
CrashReportCategory
-
-
Method Details
-
formatLocation
-
formatLocation
public static String formatLocation(LevelHeightAccessor levelHeightAccessor, double x, double y, double z) -
formatLocation
-
formatLocation
-
setDetail
Adds a section to this crash report category, resolved by calling the given callable. If the given callable throws an exception, a detail containing that exception will be created instead. -
setDetail
Adds a Crashreport section with the given name with the given value (converted.toString()) -
setDetailError
-
fillInStackTrace
public int fillInStackTrace(int nestedOffset) Resets our stack trace according to the current trace, pruning the deepest 3 entries. The parameter indicates how many additional deepest entries to prune. Returns the number of entries in the resulting pruned stack trace. -
validateStackTrace
Do the deepest two elements of our saved stack trace match the given elements, in order from the deepest? -
trimStacktrace
public void trimStacktrace(int length) Removes the given number entries from the bottom of the stack trace. -
getDetails
-
getStacktrace
-
setStackTrace
-
populateBlockDetails
public static void populateBlockDetails(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor, BlockPos pos, BlockState state) -
populateBlockLocationDetails
public static CrashReportCategory populateBlockLocationDetails(CrashReportCategory category, LevelHeightAccessor levelHeightAccessor, BlockPos pos)
-