Do not use bungeecord-chat as a dependency for pandalib-chat anymore
This commit is contained in:
@@ -113,7 +113,7 @@ public class ItemStackBuilder {
|
||||
public ItemStackBuilder lore(List<? extends ComponentLike> lore) {
|
||||
if (lore != null) {
|
||||
return rawLore(lore.stream()
|
||||
.map(line -> Chat.italicFalseIfNotSet(chatComponent(line)).getAdv())
|
||||
.map(line -> Chat.italicFalseIfNotSet(chatComponent(line)).get())
|
||||
.toList());
|
||||
}
|
||||
else
|
||||
@@ -128,7 +128,7 @@ public class ItemStackBuilder {
|
||||
Streams.concat(
|
||||
baseLore.stream(),
|
||||
lores.stream()
|
||||
.map(line -> Chat.italicFalseIfNotSet(chatComponent(line)).getAdv())
|
||||
.map(line -> Chat.italicFalseIfNotSet(chatComponent(line)).get())
|
||||
)
|
||||
.toList());
|
||||
}
|
||||
|
@@ -116,9 +116,9 @@ public class ScoreboardUtil {
|
||||
public static void updateScoreboardSidebar(Scoreboard scBrd, Chat title, Chat[] lines) {
|
||||
Component[] cmpLines = new Component[lines.length];
|
||||
for (int i = 0; i < lines.length; i++) {
|
||||
cmpLines[i] = lines[i].getAdv();
|
||||
cmpLines[i] = lines[i].get();
|
||||
}
|
||||
updateScoreboardSidebar(scBrd, title.getAdv(), cmpLines);
|
||||
updateScoreboardSidebar(scBrd, title.get(), cmpLines);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,9 +135,9 @@ public class ScoreboardUtil {
|
||||
public static void updateScoreboardSidebar(Scoreboard scBrd, Chat title, List<Chat> lines) {
|
||||
Component[] cmpLines = new Component[lines.size()];
|
||||
for (int i = 0; i < cmpLines.length; i++) {
|
||||
cmpLines[i] = lines.get(i).getAdv();
|
||||
cmpLines[i] = lines.get(i).get();
|
||||
}
|
||||
updateScoreboardSidebar(scBrd, title.getAdv(), cmpLines);
|
||||
updateScoreboardSidebar(scBrd, title.get(), cmpLines);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -99,10 +99,10 @@ public enum Skull {
|
||||
boolean b = meta.setOwner(name);
|
||||
|
||||
if (displayName != null)
|
||||
meta.displayName(displayName.getAdv());
|
||||
meta.displayName(displayName.get());
|
||||
|
||||
if (lore != null)
|
||||
meta.lore(lore.stream().map(Chat::getAdv).collect(Collectors.toList()));
|
||||
meta.lore(lore.stream().map(Chat::get).collect(Collectors.toList()));
|
||||
|
||||
itemStack.setItemMeta(meta);
|
||||
return itemStack;
|
||||
@@ -172,10 +172,10 @@ public enum Skull {
|
||||
headMeta.setPlayerProfile(profile);
|
||||
|
||||
if (displayName != null)
|
||||
headMeta.displayName(displayName.getAdv());
|
||||
headMeta.displayName(displayName.get());
|
||||
|
||||
if (lore != null)
|
||||
headMeta.lore(lore.stream().map(Chat::getAdv).collect(Collectors.toList()));
|
||||
headMeta.lore(lore.stream().map(Chat::get).collect(Collectors.toList()));
|
||||
|
||||
head.setItemMeta(headMeta);
|
||||
|
||||
|
Reference in New Issue
Block a user