Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 2a16e09

Browse files
committed
feat(menu): add ItemBuilder#setLore(vararg lore)
1 parent 195ee9a commit 2a16e09

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

common/src/main/java/com/undefined/api/builders/ItemBuilder.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@ class ItemBuilder(private var itemStack: ItemStack) {
133133
return this
134134
}
135135

136+
/**
137+
* Sets the lore of the item.
138+
*
139+
* @param lore A vararg of components representing the lore of the item.
140+
* @return The ItemBuilder instance.
141+
*/
142+
fun setLore(vararg lore: String): ItemBuilder {
143+
this.lore = lore.toMutableList()
144+
return this
145+
}
146+
136147
fun addLine(line: String): ItemBuilder {
137148
this.lore.add(line)
138149
return this

0 commit comments

Comments
 (0)