Package net.minecraft

Class CrashReportCategory

java.lang.Object
net.minecraft.CrashReportCategory

public class CrashReportCategory extends Object
  • Field Details

  • Constructor Details

    • CrashReportCategory

      public CrashReportCategory(String pTitle)
  • Method Details

    • formatLocation

      public static String formatLocation(LevelHeightAccessor pLevelHeightAccessor, double pX, double pY, double pZ)
    • formatLocation

      public static String formatLocation(LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos)
    • formatLocation

      public static String formatLocation(LevelHeightAccessor pLevelHeightAccessor, int pX, int pY, int pZ)
    • setDetail

      public CrashReportCategory setDetail(String pName, CrashReportDetail<String> pDetail)
      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

      public CrashReportCategory setDetail(String pSectionName, Object pValue)
      Adds a Crashreport section with the given name with the given value (converted .toString())
    • setDetailError

      public void setDetailError(String pSectionName, Throwable pThrowable)
      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

      public boolean validateStackTrace(StackTraceElement pS1, StackTraceElement pS2)
      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

      public void getDetails(StringBuilder pBuilder)
    • getStacktrace

      public StackTraceElement[] getStacktrace()
    • setStackTrace

      public void setStackTrace(StackTraceElement[] stackTrace)
    • populateBlockDetails

      public static void populateBlockDetails(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos, BlockState pState)
    • populateBlockLocationDetails

      public static CrashReportCategory populateBlockLocationDetails(CrashReportCategory pCategory, LevelHeightAccessor pLevelHeightAccessor, BlockPos pPos)