Package net.silkmc.silk.compose.ui

UI components (composable functions) useful for Minecraft guis

Functions

Link copied to clipboard
@Composable
fun McImage(    icon: McIcon,     contentDescription: String? = icon,     modifier: Modifier = Modifier,     alignment: Alignment = Alignment.Center,     contentScale: ContentScale = ContentScale.Fit)

Renders the icon of any Item to this gui as an Image.

Link copied to clipboard
@Composable
fun McWindowHeader(gui: MinecraftComposeGui, title: String = "")

Adds an opinionated window header suitable for MinecraftComposeGuis. This header provides a cross for closing the gui. You may use this in a Column, otherwise it will overlay with other components.