setMeta

inline fun <T : ItemMeta> ItemStack.setMeta(builder: T.() -> Unit)

Resets the meta and opens a builder to create the new one.

Parameters

T

the specific type of the meta

@JvmName(name = "simpleSetMeta")
inline fun ItemStack.setMeta(builder: ItemMeta.() -> Unit)

See also