Class TStackTraceScreen
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.screen.TScreen
io.github.thecsdev.tcdcommons.api.client.gui.screen.TStackTraceScreen
- All Implemented Interfaces:
TParentElement
,IParentScreenProvider
,IEnableStateProvider
A
TScreen
that shows a stack trace to the user.-
Field Summary
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.screen.TScreen
children, client, title
Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
MAX_CHILD_NESTING_DEPTH
-
Constructor Summary
ConstructorDescriptionTStackTraceScreen
(@Nullable net.minecraft.client.gui.screen.Screen parent, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
close()
final net.minecraft.client.gui.screen.Screen
Returns the "parent"Screen
that should be opened when the current one closes.final Throwable
protected final void
init()
final void
renderBackground
(TDrawContext pencil) Renders thisTScreen
's background.Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.screen.TScreen
__postTabNavigation, createScreenWrapper, filesDragged, getAsScreen, getChildren, getClient, getDraggingElement, getEnabled, getFocusedElement, getHeight, getHoveredElement, getItemRenderer, getMousePosition, getParent, getTextRenderer, getTitle, getWidth, getX, getY, getZIndex, hasKeyDown, hasWndDown, input, inputTabNavigation, isEnabled, isOpen, onClosed, onOpened, render, renderChildren, renderTooltip, setFocusedElement, setFocusedElement, shouldCloseOnEsc, shouldPause, shouldRenderInGameHud, tick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, input, removeChild, removeChild
-
Constructor Details
-
TStackTraceScreen
public TStackTraceScreen(@Nullable @Nullable net.minecraft.client.gui.screen.Screen parent, Throwable throwable) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
getParentScreen
public final net.minecraft.client.gui.screen.Screen getParentScreen()Description copied from interface:IParentScreenProvider
Returns the "parent"Screen
that should be opened when the current one closes.- Specified by:
getParentScreen
in interfaceIParentScreenProvider
-
getThrowable
-
close
public final void close() -
init
protected final void init()Description copied from class:TScreen
-
renderBackground
Description copied from class:TScreen
Renders thisTScreen
's background.Should be called before rendering children in
TScreen.render(TDrawContext)
.- Overrides:
renderBackground
in classTScreen
- Parameters:
pencil
- TheTDrawContext
.- See Also:
-