@ApiStatus.Experimental
@ApiStatus.Experimental fun <T : Entity> registerEntityRenderer(entityType: EntityType<T>, rendererFactory: EntityRendererProvider<T>)Registers a custom entity renderer for a script-registered entity type.
This is the client-side counterpart to [registerNativeEntity]. After registering an entity type with [registerNativeEntity], call this on the client to give your entity a visual appearance.
The [rendererFactory] receives an [EntityRendererProvider.Context], which provides access to the entity render dispatcher, item renderer, resource manager, and entity model set — everything you need to construct a standard [EntityRenderer].
Parameters
| Parameter | Description |
|---|---|
entityType | the entity type (obtained from [registerNativeEntity]'s return value) |
rendererFactory | factory that creates the [EntityRenderer] instance |
