icon

fun icon(item: ItemStack): SlotCreator

Sets the icon (item) for this slot.


fun icon(material: Material, amount: Int = 1, creator: ItemStack.() -> Unit = {}): SlotCreator

Sets the icon (item) for this slot using material and amount.

Parameters

material

The material of the item.

amount

The amount of the item (default: 1).

creator

Additional configuration for the ItemStack.