Class IrisPhaseGuard

java.lang.Object
com.hbm_m.client.render.shader.IrisPhaseGuard
All Implemented Interfaces:
AutoCloseable

public final class IrisPhaseGuard extends Object implements AutoCloseable
Try-with-resources scope helper that calls WorldRenderingPipeline.setPhase(WorldRenderingPhase.<phase>) on entry and restores WorldRenderingPhase.NONE on close.
  • Method Details

    • pushBlockEntities

      public static IrisPhaseGuard pushBlockEntities()
      Pushes BLOCK_ENTITIES phase. Returns a guard whose close() restores NONE. When Iris is missing or the reflective call fails the guard is a no-op.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable