Interface RenderBridge


public interface RenderBridge
Client services RenderUtils needs but cannot see from the API: shader-mod (Iris) pipeline routing and the Antialiasing module's toggles. The client installs its implementation once at startup; the built-in default assumes no shader mod and AA enabled.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Mutable holder (interfaces cannot own mutable statics).
    static enum 
    Gbuffer program kinds a custom pipeline can be routed through.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    assignPipeline(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, RenderBridge.Program program)
    Routes pipeline through the shader mod's program.
    boolean
    Whether box/line drawing should use the anti-aliased shaders.
    get()
    The installed implementation (inert until install(me.hackware.api.util.RenderBridge) is called).
    static void
    Installed once by the client before the first frame renders.
    boolean
    Whether a shader mod (Iris) is loaded and pipelines need routing.
    boolean
    Whether tracer strips should use the anti-aliased shader.
  • Method Details

    • isShaderModLoaded

      boolean isShaderModLoaded()
      Whether a shader mod (Iris) is loaded and pipelines need routing.
    • assignPipeline

      void assignPipeline(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, RenderBridge.Program program)
      Routes pipeline through the shader mod's program.
    • boxesAA

      boolean boxesAA()
      Whether box/line drawing should use the anti-aliased shaders.
    • tracersAA

      boolean tracersAA()
      Whether tracer strips should use the anti-aliased shader.
    • get

      static RenderBridge get()
      The installed implementation (inert until install(me.hackware.api.util.RenderBridge) is called).
    • install

      static void install(RenderBridge bridge)
      Installed once by the client before the first frame renders.