withoutLore

@Contract(value = "_ -> new", pure = true)
abstract fun withoutLore(index: Int): ItemMeta

Creates new item metadata with the lore line at the given index removed from the lore.

Return

new item metadata

Parameters

index

the index of the lore line to remove

Throws

if the index would result in an out of bounds exception, i.e. when it is too small or too big


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

Creates new item metadata with the given lore line removed from the lore.

Return

new item metadata

Parameters

lore

the lore line to remove