renderBlockState

fun renderBlockState(blockState: BlockState, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider, light: Int, overlay: Int)(source)

Renders a BlockState.

Parameters

blockState

The block state to render

matrices

The render transformation matrix

vertexConsumers

The render output

light

Light parameter from the game

overlay

Overlay parameter from the game


fun renderBlockState(blockStateId: ModelIdentifier, blockStateItem: ItemStack, matrices: MatrixStack, vertexConsumers: VertexConsumerProvider, light: Int, overlay: Int)(source)

Renders a BlockState.

Parameters

blockStateId

The ID of the block state

blockStateItem

The item form of the block state

matrices

The render transformation matrix

vertexConsumers

The render output

light

Light parameter from the game

overlay

Overlay parameter from the game