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.

Functions

materialById
Link copied to clipboard
@Nullable()
abstract RenderMaterial materialById(Identifier id)
Return a material previously registered via registerMaterial.Will return null if no material was found matching the given identifier.
materialFinder
Link copied to clipboard
abstract MaterialFinder materialFinder()
Obtain a new MaterialFinder instance used to retrievestandard RenderMaterial instances.
meshBuilder
Link copied to clipboard
abstract MeshBuilder meshBuilder()
Obtain a new MeshBuilder instance used to createbaked models with enhanced features.
registerMaterial
Link copied to clipboard
abstract boolean registerMaterial(Identifier id, RenderMaterial material)
Register a material for re-use by other mods or models within a mod.The registry does not persist registrations - mods must create and registerall materials at game initialization.

Sources

jvm source
Link copied to clipboard