Skip to content

API reference Obsidian.API.Client

IItemRenderBuffer interface

What an IItemRenderer draws into for one stack in a frame. Transforms are in blocks, in the item's model space: the box from (0, 0, 0) to (1, 1, 1) its base model's elements fill at sixteenths, which the base model's display transform for the context then places, like vanilla's special models.

public interface IItemRenderBuffer

In Obsidian.API.Client.

Methods

Face(BlockModelFace, Matrix4x4)

void Face(BlockModelFace face, Matrix4x4 transform);

Draws a face, a quad with a block texture, with a transform. Its cull face and tint index are ignored.

Parameters

face
The face, in sixteenths of a block like model data's.
transform
Where the face's block space goes, in the item's model space.

Model(BlockModelPart, Matrix4x4)

void Model(BlockModelPart model, Matrix4x4 transform);

Draws a declared model with a transform.

Parameters

model
One of ItemRendererProperties.Models, turned in quarter turns like a blockstate file's model before transform.
transform
Where the model's block space goes, in the item's model space.

On this page