Interface Renderer


public interface Renderer
Interface for rendering plug-ins that provide enhanced capabilities for model lighting, buffering and rendering. Such plug-ins implement the enhanced model rendering interfaces specified by the Fabric API.

Renderers must ensure that terrain buffering supports

invalid reference
BlockStateModel#emitQuads
, which happens in SectionBuilder in vanilla; this code is not patched automatically. Renderers must also ensure that the following vanilla methods support
invalid reference
BlockStateModel#emitQuads
; these methods are not patched automatically.

All other places in vanilla code that invoke BlockStateModel.addParts(Random, List), BlockStateModel.getParts(Random), or BlockModelRenderer.render(MatrixStack.Entry, VertexConsumer, BlockStateModel, float, float, float, int, int) are, where appropriate, patched automatically to invoke the corresponding method above or the corresponding method in FabricBlockModelRenderer or FabricBlockRenderManager.