public class Netherboard
extends java.lang.Object
Netherboard.instance()
and call one of the createBoard() methods.| Modifier and Type | Method and Description |
|---|---|
BPlayerBoard |
createBoard(org.bukkit.entity.Player player,
org.bukkit.scoreboard.Scoreboard scoreboard,
java.lang.String name)
Creates a board to a player, using a predefined scoreboard.
|
BPlayerBoard |
createBoard(org.bukkit.entity.Player player,
java.lang.String name)
Creates a board to a player.
|
void |
deleteBoard(org.bukkit.entity.Player player)
Deletes the board of a player.
|
BPlayerBoard |
getBoard(org.bukkit.entity.Player player)
Gets the board of a player.
|
java.util.Map<org.bukkit.entity.Player,BPlayerBoard> |
getBoards()
Gets all the boards mapped to their player.
|
boolean |
hasBoard(org.bukkit.entity.Player player)
Checks if the player has a board.
|
static Netherboard |
instance()
Returns the instance of the Netherboard class.
|
void |
removeBoard(org.bukkit.entity.Player player)
Removes the board of a player from the boards map.
|
public BPlayerBoard createBoard(org.bukkit.entity.Player player, java.lang.String name)
player - the playername - the name of the boardpublic BPlayerBoard createBoard(org.bukkit.entity.Player player, org.bukkit.scoreboard.Scoreboard scoreboard, java.lang.String name)
player - the playerscoreboard - the scoreboard to usename - the name of the boardpublic void deleteBoard(org.bukkit.entity.Player player)
player - the playerpublic void removeBoard(org.bukkit.entity.Player player)
player - the playerpublic boolean hasBoard(org.bukkit.entity.Player player)
player - the playertrue if the player has a board, otherwise falsepublic BPlayerBoard getBoard(org.bukkit.entity.Player player)
player - the playerpublic java.util.Map<org.bukkit.entity.Player,BPlayerBoard> getBoards()
public static Netherboard instance()