Class TTestScreen
java.lang.Object
com.thecsdev.common.scene.Node<TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.screen.TScreen
com.thecsdev.commonmc.api.client.gui.screen.TScreenPlus
com.thecsdev.commonmc.client.gui.screen.TTestScreen
- All Implemented Interfaces:
INode<TElement>, INodeBounded<TElement,Bounds2i>, INodeRenderable<TElement, TGuiGraphics>, ILastScreenProvider, Iterable<TElement>, Collection<TElement>
@Environment(CLIENT)
@Internal
public final class TTestScreen
extends TScreenPlus
implements ILastScreenProvider
Internal
TScreen implementation whose purpose is debugging and preloading
Classes necessary for the GUI system. The main reason for preloading
is avoiding performance hiccups later on from Java's lazy loading mechanism.- API Note:
- This conveniently also serves as an internal debug screen.
-
Field Summary
Fields inherited from class TElement
eInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @Nullable net.minecraft.client.gui.screens.ScreenReturns the lastScreeninstance that was open before this one.protected final voidCallback method that is invoked when thisTElementis initializing.Methods inherited from class TScreenPlus
inputCallbackMethods inherited from class TScreen
close, closeCallback, createWrapperScreen, focusedElementProperty, getAsScreen, getClient, hoveredElementProperty, isAllowingInGameHud, isOpen, isPauseScreen, openCallback, sendInput, titlePropertyMethods inherited from class TElement
addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, postRenderCallback, removeRel, renderCallback, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tickCallback, tooltipProperty, toString, visiblePropertyMethods inherited from class Node
add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray
-
Constructor Details
-
TTestScreen
public TTestScreen(@Nullable @Nullable net.minecraft.client.gui.screens.Screen lastScreen)
-
-
Method Details
-
getLastScreen
@Nullable public final @Nullable net.minecraft.client.gui.screens.Screen getLastScreen()Description copied from interface:ILastScreenProviderReturns the lastScreeninstance that was open before this one.- Specified by:
getLastScreenin interfaceILastScreenProvider
-
initCallback
protected final void initCallback()Description copied from class:TElementCallback method that is invoked when thisTElementis initializing. You may override this method to create and add childTElements.- Specified by:
initCallbackin classTScreen- See Also:
-