Package com.hbm_m.client.render.shader
Class IrisPhaseGuard
java.lang.Object
com.hbm_m.client.render.shader.IrisPhaseGuard
- All Implemented Interfaces:
AutoCloseable
Try-with-resources scope helper that calls
WorldRenderingPipeline.setPhase(WorldRenderingPhase.<phase>) on entry
and restores WorldRenderingPhase.NONE on close.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static IrisPhaseGuardPushesBLOCK_ENTITIESphase.
-
Method Details
-
pushBlockEntities
PushesBLOCK_ENTITIESphase. Returns a guard whoseclose()restoresNONE. When Iris is missing or the reflective call fails the guard is a no-op. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-