toItemBuilder

fun Material.toItemBuilder(dsl: ItemBuilder.() -> Unit = {}): ItemBuilder(source)

Converts a Material to an ItemBuilder and applies the provided DSL.

Return

The resulting ItemBuilder.

Parameters

dsl

The DSL to be applied to the ItemBuilder.


fun ItemStack.toItemBuilder(dsl: ItemBuilder.() -> Unit = {}): ItemBuilder(source)

Converts an ItemStack to an ItemBuilder.

Return

the converted ItemBuilder.

Parameters

dsl

a lambda function that allows customization of the ItemBuilder.