Package fr.minuskube.netherboard.api
Interface PlayerBoard<V,N,S>
public interface PlayerBoard<V,N,S>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all the lines of the scoreboard.voiddelete()Totally deletes the board, after this, you can't use this instance again, you'll need to create another PlayerBoard if you want to create the scoreboard again.Gets the name of the line from its score.getLines()Gets the current lines of the board.getName()Gets the name of the board.voidRemoves a line from its score.voidSets a line with its name and its score.voidSets all the lines of the scoreboard.voidSets the name of the board.
-
Method Details
-
get
Gets the name of the line from its score.- Parameters:
score- the score of the line- Returns:
- the name of the line, or null if the line doesn't exist.
-
set
Sets a line with its name and its score. This will update the line if it already exists, and create it if it doesn't.- Parameters:
name- the name of the linescore- the score of the line
-
setAll
Sets all the lines of the scoreboard. This will clear all of the current board lines, then set all of the given lines, from top to down, by giving them each a score determined bylines.length - index.- Parameters:
lines- the new board lines
-
clear
void clear()Clears all the lines of the scoreboard. -
remove
Removes a line from its score.- Parameters:
score- the score of the line to remove
-
delete
void delete()Totally deletes the board, after this, you can't use this instance again, you'll need to create another PlayerBoard if you want to create the scoreboard again. -
getName
S getName()Gets the name of the board.- Returns:
- the name of the board
-
setName
Sets the name of the board.- Parameters:
name- the new name of the board
-
getLines
Gets the current lines of the board.- Returns:
- the lines of the board
-