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