public interface PlayerBoard<V,N,S>
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all the lines of the scoreboard.
|
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.
|
V |
get(N score)
Gets the name of the line from its score.
|
java.util.Map<N,V> |
getLines()
Gets the current lines of the board.
|
S |
getName()
Gets the name of the board.
|
void |
remove(N score)
Removes a line from its score.
|
void |
set(V name,
N score)
Sets a line with its name and its score.
|
void |
setAll(V... lines)
Sets all the lines of the scoreboard.
|
void |
setName(S name)
Sets the name of the board.
|
V get(N score)
score - the score of the linevoid set(V name, N score)
name - the name of the linescore - the score of the linevoid setAll(V... lines)
lines.length - index.lines - the new board linesvoid clear()
void remove(N score)
score - the score of the line to removevoid delete()
S getName()
void setName(S name)
name - the new name of the board