public class QuestScoreboard extends BaseScoreboard
rowStrings| Constructor and Description |
|---|
QuestScoreboard(org.bukkit.entity.Player player)
Initializes the scoreboard and fills it with data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillScoreboard(org.bukkit.entity.Player player)
Fills the scoreboard with entries for the given player
|
private static java.util.List<java.lang.String> |
generateQuestObjectiveList(org.bukkit.entity.Player player,
java.lang.String questMargin,
java.lang.String questName,
int questPhase,
org.bukkit.ChatColor questColor)
Generates a list of a quest and its objectives, to show in the sidebar.
|
java.lang.String |
getTitleText() |
getScoreboardpublic QuestScoreboard(org.bukkit.entity.Player player)
player - The player who should receive the scoreboard.public java.lang.String getTitleText()
getTitleText in class BaseScoreboardpublic void fillScoreboard(org.bukkit.entity.Player player)
fillScoreboard in class BaseScoreboardplayer - The player who should receive the scoreboard.private static java.util.List<java.lang.String> generateQuestObjectiveList(org.bukkit.entity.Player player,
java.lang.String questMargin,
java.lang.String questName,
int questPhase,
org.bukkit.ChatColor questColor)
player - The player who is doing the quest.questMargin - The empty space above the title.questName - The name of the quest.questPhase - The phase of the quest.questColor - The color of the quest type.