Skip to content

API reference Obsidian.API.Client

IEntityRenderBuffer interface

What an IEntityRenderer draws into for one entity in a frame, with the light at the entity.

public interface IEntityRenderBuffer

In Obsidian.API.Client.

Methods

Model(string, string, string, Matrix4x4, EntityRenderType, int)

void Model(string model, string part, string texture, Matrix4x4 transform, EntityRenderType renderType = 0, int tint = 16777215);

Draws a model layer, or one of its parts with its children, with a texture.

Parameters

model
EntityRendererProperties.Model, a layer's model, or one of EntityRendererProperties.Models.
part
The name of the part drawn, at any depth; null for the whole model.
texture
The texture, named like EntityRendererProperties.Texture.
transform
Where the model's space (16 pixels to a block, Y down), or the part's parent's, goes, in blocks from the entity's position: EntityRenderContext.ModelTransform places it like the entity's model.
renderType
How it's drawn.
tint
The colour the texture is multiplied by, as 0xRRGGBB.

Remarks

Parts are posed by name like the entity's model's (heads turn, legs swing, the renderer's animations move them): name a part differently to keep it as modelled.

On this page