buildMesh

inline fun StaticMeshStorage.buildMesh(pipeline: RenderPipeline, rotate: Boolean = true, origin: BlockPos = BlockPos.ZERO, block: VertexConsumer.(pose: PoseStack, origin: BlockPos) -> Unit)

Build new mesh data and upload it. This method is designed for lazy building so rotate defaults to true.

Parameters

origin

a preferred origin; the lambda receives the resolved origin that must be used for relative vertex positions.