public interface RendererAccess
Modifier and Type | Field and Description |
---|---|
static RendererAccess |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
@Nullable Renderer |
getRenderer()
Access to the current
Renderer for creating and retrieving model builders
and materials. |
boolean |
hasRenderer()
Performant test for
getRenderer() != null. |
void |
registerRenderer(Renderer plugin)
Rendering extension mods must implement
Renderer and
call this method during initialization. |
static final RendererAccess INSTANCE
void registerRenderer(Renderer plugin)
@Nullable @Nullable Renderer getRenderer()
Renderer
for creating and retrieving model builders
and materials. Will return null if no render plug in is active.boolean hasRenderer()
getRenderer()
!= null.