Class 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.
  • 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: ILastScreenProvider
      Returns the last Screen instance that was open before this one.
      Specified by:
      getLastScreen in interface ILastScreenProvider
    • initCallback

      protected final void initCallback()
      Description copied from class: TElement
      Callback method that is invoked when this TElement is initializing. You may override this method to create and add child TElements.
      Specified by:
      initCallback in class TScreen
      See Also: