itemMeta

@Contract(value = "_ -> new", pure = true)
inline fun itemMeta(builder: ItemMeta.Builder.() -> Unit): ItemMeta

Creates new item metadata from the result of applying the given builder function.

Return

new item metadata

Parameters

builder

the builder


@JvmName(name = "itemMetaGeneric")
@Contract(value = "_ -> new", pure = true)
inline fun <B : ItemMetaBuilder<B, P>, P : ItemMetaBuilder.Provider<B>> itemMeta(builder: B.() -> Unit): P

Creates new item metadata of the given type P from the result of applying the given builder function to a new builder of type B.

Return

new item metadata

Parameters

B

the type of the builder

P

the type of the metadata

builder

the builder