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")
}
}
}