Baked

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.

val designer: CraftUIDesigner = ~~~
val context: CraftUIDesigner.Context = ~~~
val baked: BakedDesigner = CraftUIDesigner.bake(designer, context)

Since

5.0.16

Parameters

title

Title of UI

result

Coordinate of result slot

makeButton

Make button coordinate and icon (item)

blankSlots

Unclickable slot coordinates and icons

See also

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val title: Component

Functions

Link copied to clipboard
fun apply(ui: Inventory)

Applies designer to a provided ui (inventory).

Link copied to clipboard

Returns craft slots (6x6)

Link copied to clipboard

Returns is this valid or not.

Link copied to clipboard
fun resultInt(): Int

Returns result slot coordinate (Int)