Package net.minecraft
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 TypeMethodDescriptionint
fillInStackTrace
(int pSize) Resets our stack trace according to the current trace, pruning the deepest 3 entries.static String
formatLocation
(LevelHeightAccessor pLevelHeightAccessor, double pX, double pY, double pZ) static String
formatLocation
(LevelHeightAccessor pLevelHeightAccessor, int pX, int pY, int pZ) static String
formatLocation
(LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos) void
getDetails
(StringBuilder pBuilder) static void
populateBlockDetails
(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos, BlockState pState) static CrashReportCategory
populateBlockLocationDetails
(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos) Adds a Crashreport section with the given name with the given value (converted.toString()
)setDetail
(String pName, CrashReportDetail<String> pDetail) Adds a section to this crash report category, resolved by calling the given callable.void
setDetailError
(String pSectionName, Throwable pThrowable) Adds a Crashreport section with the given name with the given Throwablevoid
setStackTrace
(StackTraceElement[] stackTrace) void
trimStacktrace
(int pAmount) Removes the given number entries from the bottom of the stack trace.boolean
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
public static String formatLocation(LevelHeightAccessor pLevelHeightAccessor, double pX, double pY, double pZ) -
formatLocation
-
formatLocation
public static String formatLocation(LevelHeightAccessor pLevelHeightAccessor, int pX, int pY, int pZ) -
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
Adds a Crashreport section with the given name with the given Throwable -
fillInStackTrace
public int fillInStackTrace(int pSize) 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 pAmount) Removes the given number entries from the bottom of the stack trace. -
getDetails
-
getStacktrace
-
setStackTrace
-
populateBlockDetails
public static void populateBlockDetails(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos, BlockState pState) -
populateBlockLocationDetails
public static CrashReportCategory populateBlockLocationDetails(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos)
-