Package me.hackware.api.util
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 ClassesModifier and TypeInterfaceDescriptionstatic final classMutable holder (interfaces cannot own mutable statics).static enumGbuffer program kinds a custom pipeline can be routed through. -
Method Summary
Modifier and TypeMethodDescriptionvoidassignPipeline(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, RenderBridge.Program program) Routespipelinethrough the shader mod'sprogram.booleanboxesAA()Whether box/line drawing should use the anti-aliased shaders.static RenderBridgeget()The installed implementation (inert untilinstall(me.hackware.api.util.RenderBridge)is called).static voidinstall(RenderBridge bridge) Installed once by the client before the first frame renders.booleanWhether a shader mod (Iris) is loaded and pipelines need routing.booleanWhether 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) Routespipelinethrough the shader mod'sprogram. -
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
The installed implementation (inert untilinstall(me.hackware.api.util.RenderBridge)is called). -
install
Installed once by the client before the first frame renders.
-