Class GuiAreaRecorder

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.gui.GuiAreaRecorder

public final class GuiAreaRecorder extends Object
Records the box of everything the HUD and the open screen's own pass add to the GUI render state each frame (GuiRenderStateMixin, while GuiFrameMixin and ScreenMixin say which is being drawn), and keeps the last whole frame's for GuiAreas. Render thread only.
  • Method Details

    • begin

      public static GuiAreaRecorder.Phase begin(GuiAreaRecorder.Phase now)
      Starts recording for this part of the frame; returns the part it was, to end(GuiAreaRecorder.Phase) with.
    • end

      public static void end(GuiAreaRecorder.Phase was)
    • pause

      public static void pause()
    • resume

      public static void resume()
    • record

      public static void record(net.minecraft.client.gui.navigation.ScreenRectangle bounds)
    • endFrame

      public static void endFrame()
      The frame's GUI is all gathered: what it drew becomes what the areas are.
    • hud

      public static List<GuiArea> hud()
    • screen

      public static List<GuiArea> screen()