renderItemInStaff

public Unit renderItemInStaff(ItemStack staffStack, ModelTransformation itemTransform, ModelTransformationMode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, Integer light, Integer overlay)(source)

Renders an item.

Parameters

staffStack

The staff item stack

itemTransform

The transformation of the item in the staff. Use ModelTransformationMode.FIXED to render the item inside the staff or ModelTransformationMode.HEAD to render the item on top of the staff

mode

The transformation the staff is rendered in. You likely want to pass ModelTransformationMode.NONE to rendering calls

matrices

Matrix stack for rendering calls

vertexConsumers

Vertex consumer provider for rendering calls

light

Light component for rendering calls

overlay

Overlay component for rendering calls