2023-01-28 11:32:16 +00:00
|
|
|
@file:Suppress("PackageDirectoryMismatch")
|
|
|
|
|
2023-01-28 14:41:10 +00:00
|
|
|
package xyz.xenondevs.invui.item.builder
|
2023-01-28 11:32:16 +00:00
|
|
|
|
|
|
|
import net.md_5.bungee.api.chat.BaseComponent
|
2023-01-28 14:41:10 +00:00
|
|
|
import xyz.xenondevs.inventoryaccess.component.BaseComponentWrapper
|
|
|
|
import xyz.xenondevs.invui.util.ComponentUtils
|
2023-01-28 11:32:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the lore of the item stack.
|
|
|
|
*/
|
2023-02-26 14:29:57 +00:00
|
|
|
fun <T : AbstractItemBuilder<T>> T.setLore(lore: List<Array<BaseComponent>>): T = setLore(lore.map { BaseComponentWrapper(ComponentUtils.withoutPreFormatting(*it)) })
|