create

fun create(material: XMaterial, action: (action: UiAction) -> Unit = {}): UiEntry

Creates a UiEntry with the given XMaterial

Return

The created UiEntry

Parameters

material

The XMaterial to create the UiEntry with

action

The action to perform when the UiEntry is clicked. Defaults to empty function


fun create(material: XMaterial, name: String, action: (action: UiAction) -> Unit = {}): UiEntry

Creates a UiEntry with the given XMaterial and the given name

Return

The created UiEntry

Parameters

material

The XMaterial to create the UiEntry with

name

The name of the UiEntry

action

The action to perform when the UiEntry is clicked. Defaults to empty function