public abstract class CustomModLoadingErrorDisplayException extends EnhancedRuntimeException implements IFMLHandledException, IDisplayableError
EnhancedRuntimeException.WrappedPrintStream
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
CustomModLoadingErrorDisplayException() |
CustomModLoadingErrorDisplayException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
GuiScreen |
createGui() |
abstract void |
drawScreen(GuiErrorScreen errorScreen,
FontRenderer fontRenderer,
int mouseRelX,
int mouseRelY,
float tickTime)
Draw your error to the screen.
|
abstract void |
initGui(GuiErrorScreen errorScreen,
FontRenderer fontRenderer)
Called after the GUI is initialized by the parent code.
|
void |
printStackTrace(EnhancedRuntimeException.WrappedPrintStream s) |
getMessage, printStackTrace, printStackTrace
private static final long serialVersionUID
public CustomModLoadingErrorDisplayException()
public CustomModLoadingErrorDisplayException(java.lang.String message, java.lang.Throwable cause)
public abstract void initGui(GuiErrorScreen errorScreen, FontRenderer fontRenderer)
errorScreen
- The error screen we're paintingfontRenderer
- A font renderer for youpublic abstract void drawScreen(GuiErrorScreen errorScreen, FontRenderer fontRenderer, int mouseRelX, int mouseRelY, float tickTime)
errorScreen
- The error screen to draw tofontRenderer
- A font renderer for youmouseRelX
- Mouse XmouseRelY
- Mouse YtickTime
- tick timepublic void printStackTrace(EnhancedRuntimeException.WrappedPrintStream s)
printStackTrace
in class EnhancedRuntimeException
public final GuiScreen createGui()
createGui
in interface IDisplayableError