Class ManagedHudLayoutRuntime.ElementRuntime

java.lang.Object
com.render.api.gui.ManagedHudLayoutRuntime.ElementRuntime
Enclosing class:
ManagedHudLayoutRuntime

public static final class ManagedHudLayoutRuntime.ElementRuntime extends Object
  • Method Details

    • id

      public String id()
    • layer

      public int layer()
    • declarationIndex

      public int declarationIndex()
    • shell

      public com.render.api.gui.HudLayoutElementShell shell()
    • element

      public HudLayoutElement element()
    • currentPlacement

      public HudPlacement currentPlacement()
    • customized

      public boolean customized()
    • currentPlacement

      public void currentPlacement(HudPlacement placement, boolean persist)
    • resetToDefault

      public void resetToDefault(boolean persist)
    • editorVisible

      public void editorVisible(boolean editorVisible)
    • editorVisible

      public boolean editorVisible()
    • tick

      public void tick()
    • render

      public void render(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int guiWidth, int guiHeight, net.minecraft.client.DeltaTracker deltaTracker)
    • compositorCacheStats

      public GuiCompositorCacheStats compositorCacheStats()
      Returns cumulative structural work counters for this element's bounded retained graph cache. Reuse keeps the compilation identifier stable, while painting, live backdrop capture and GPU effect execution still run. Closing the owning runtime releases its retained nodes without resetting cumulative counters.
      Returns:
      immutable structural work counters
    • renderStats

      public GuiRenderStats renderStats()
      Returns:
      statistics for the most recently submitted graph; its frame ID stays stable on cache reuse