displayComposable

fun ServerPlayer.displayComposable(    blockWidth: Int,     blockHeight: Int,     position: BlockPos = blockPosition().relative(direction, 2),     content: @Composable BoxScope.(gui: MinecraftComposeGui) -> Unit): MinecraftComposeGui

Creates a new server-side MinecraftComposeGui. This allows you to use any composable functions inside the content lambda of this function.

See also

Parameters

blockWidth

the width of the gui in blocks

blockHeight

the height of the gui in blocks

content

define your gui using composable functions in here

Sources

Link copied to clipboard