Ieact

A react-like kotlin library to create an inventory ui easily

Example Component

// A component without state & props
class Test1Component(props: Any?, player: Player): IeactComponent<Any?, Any?>(props, player) {
    val theStack = ItemStack(Material.APPLE)
    val theTitle = Component.text("Hello, World!")

    override fun render(): IeactRendered =
        ieact(theTitle, 9) {
            item(x = 0, y = 0, stack = theStack) {
                player.sendMessage("TEST")
            }
        }
    }

GitHub

View Github