Package com.andrei1058.spigot.sidebar
Interface ScoreLine
- All Superinterfaces:
Comparable<ScoreLine>
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getLine()
int
boolean
Refresh contents in case of placeholders etc.void
sendCreate
(org.bukkit.entity.Player player) void
void
sendRemove
(org.bukkit.entity.Player player) void
void
sendUpdate
(org.bukkit.entity.Player player) void
boolean
setContent
(SidebarLine line) void
setLine
(SidebarLine line) void
setScoreAmount
(int score) Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getLine
SidebarLine getLine() -
setLine
-
getScoreAmount
int getScoreAmount() -
setScoreAmount
void setScoreAmount(int score) -
sendCreateToAllReceivers
void sendCreateToAllReceivers() -
sendCreate
void sendCreate(org.bukkit.entity.Player player) -
setContent
- Returns:
- if content has been changed
-
sendUpdateToAllReceivers
void sendUpdateToAllReceivers() -
sendUpdate
void sendUpdate(org.bukkit.entity.Player player) -
sendRemoveToAllReceivers
void sendRemoveToAllReceivers() -
sendRemove
void sendRemove(org.bukkit.entity.Player player) -
getColor
String getColor() -
refreshContent
boolean refreshContent()Refresh contents in case of placeholders etc. Used for triggering refresh a single time and then send the data to all receivers.- Returns:
- true if different from previous state.
-