define

fun define(id: String, builder: () -> CustomItem)

Defines a custom item by registering it with a unique ID.

Parameters

id

The unique identifier for the custom item.

builder

A lambda that builds the custom item.