render Item In Staff
public Unit renderItemInStaff(ItemStack staffStack, ModelTransformation itemTransform, ModelTransformationMode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, Integer light, Integer overlay)(source)
Renders an item.
Parameters
staff Stack
The staff item stack
item Transform
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
vertex Consumers
Vertex consumer provider for rendering calls
light
Light component for rendering calls
overlay
Overlay component for rendering calls