Package net.minecraft.crash
Class CrashReportCategory
- java.lang.Object
-
- net.minecraft.crash.CrashReportCategory
-
public class CrashReportCategory extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description CrashReportCategory(CrashReport report, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 Throwablevoid
appendToStringBuilder(java.lang.StringBuilder builder)
boolean
firstTwoElementsOfStackTraceMatch(java.lang.String s1, java.lang.String 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(double x, double y, double z)
static java.lang.String
getCoordinateInfo(BlockPos pos)
int
getPrunedStackTrace(int size)
+ Resets our stack trace according to the current trace, pruning the deepest 3 entries.java.lang.String[]
getStackTrace()
void
trimStackTraceEntriesFromBottom(int amount)
+ Removes the given number entries from the bottom of the stack trace.
-
-
-
Constructor Detail
-
CrashReportCategory
public CrashReportCategory(CrashReport report, java.lang.String name)
-
-
Method Detail
-
getCoordinateInfo
public static java.lang.String getCoordinateInfo(double x, double y, double z)
-
getCoordinateInfo
public static java.lang.String getCoordinateInfo(BlockPos pos)
-
addCrashSectionCallable
public 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;
-
addCrashSection
public void addCrashSection(java.lang.String sectionName, java.lang.Object value)
+ Adds a Crashreport section with the given name with the given value (convered .toString())
-
addCrashSectionThrowable
public void addCrashSectionThrowable(java.lang.String sectionName, java.lang.Throwable throwable)
+ Adds a Crashreport section with the given name with the given Throwable
-
getPrunedStackTrace
public int getPrunedStackTrace(int size)
+ 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.
-
firstTwoElementsOfStackTraceMatch
public boolean firstTwoElementsOfStackTraceMatch(java.lang.String s1, java.lang.String s2)
+ Do the deepest two elements of our saved stack trace match the given elements, in order from the deepest?
-
trimStackTraceEntriesFromBottom
public void trimStackTraceEntriesFromBottom(int amount)
+ Removes the given number entries from the bottom of the stack trace.
-
appendToStringBuilder
public void appendToStringBuilder(java.lang.StringBuilder builder)
-
getStackTrace
public java.lang.String[] getStackTrace()
-
addBlockInfo
public static void addBlockInfo(CrashReportCategory category, BlockPos pos, Block blockIn, int blockData)
-
addBlockInfo
public static void addBlockInfo(CrashReportCategory category, BlockPos pos, IBlockState state)
-
-