CraftUIDesigner

interface CraftUIDesigner

UI builder for CraftUI

Default UI implementation is in CraftUI. (companion object)

Since

5.0.16

Types

Link copied to clipboard
class Baked(val title: Component, val result: CoordinateComponent, val makeButton: Pair<CoordinateComponent, ItemStack>, val blankSlots: Map<CoordinateComponent, ItemStack>)

BakedDesigner: An immutable CraftUIDesigner with a set (baked) value.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Context(val player: Player? = null)

Context for CraftUIDesigner.

Functions

Link copied to clipboard
abstract fun blankSlots(context: CraftUIDesigner.Context): Map<CoordinateComponent, ItemStack>

Blank slots coordinates and those item(icon)s

Link copied to clipboard
abstract fun makeButton(context: CraftUIDesigner.Context): Pair<CoordinateComponent, ItemStack>

Make button slot coordinate and make button item (icon)

Link copied to clipboard

Result slot coordinate

Link copied to clipboard
abstract fun title(context: CraftUIDesigner.Context): Component

UI title