ButtonComponent

class ButtonComponent(val space: ComponentSpace, val item: ItemComponentRepr, val handler: (UIClickData) -> Unit) : SpacedComponent(source)

Constructors

Link copied to clipboard
constructor(space: ComponentSpace, item: ItemComponentRepr, handler: (UIClickData) -> Unit)

Functions

Link copied to clipboard
open override fun handleClick(click: UIClickData)
Link copied to clipboard
open override fun render(inv: Inventory): ItemStack
open override fun render(inv: Inventory, ui: MacrocosmUI)
Link copied to clipboard
open override fun wasClicked(slot: Int, dim: UIDimensions): Boolean

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard