withLore

@Contract(value = "_ -> new", pure = true)
abstract fun withLore(lore: List<Component>): ItemMeta

Creates new item metadata with the given lore.

Return

new item metadata

Parameters

lore

the new lore


@Contract(value = "_ -> new", pure = true)
abstract fun withLore(lore: Component): ItemMeta

Creates new item metadata with the given lore line added to the bottom of the lore text.

Return

new item metadata

Parameters

lore

the lore line to add