mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-12 10:21:39 +01:00
Reuse lore code
This commit is contained in:
parent
308dbe0fdb
commit
cba09e6a26
@ -27,16 +27,15 @@ public class ItemBuilder {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ItemBuilder lore(Component... lore) {
|
||||
this.lore = Arrays.asList(lore);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ItemBuilder lore(List<Component> lore) {
|
||||
this.lore = Collections.unmodifiableList(lore);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ItemBuilder lore(Component... lore) {
|
||||
return lore(Arrays.asList(lore));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Item build() {
|
||||
return null; // TODO
|
||||
|
Loading…
Reference in New Issue
Block a user