Class Board
java.lang.Object
studio.magemonkey.codex.mccore.scoreboard.Board
- Direct Known Subclasses:
StatBoard
A manager for a scoreboard
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the side board displaybooleanEquates by namegetName()Gets the name of the scoreboardprotected org.bukkit.entity.Playerorg.bukkit.scoreboard.ScoreboardinthashCode()Hashes by nameprotected voidSets a score to the scoreboardvoidsetHealthLabel(String label) Deprecated.use setTextBelowNames in BoardManager insteadvoidsetPlayer(org.bukkit.entity.Player player) Sets the player for the boardbooleanShows the board to it's player
-
Field Details
-
plugin
-
-
Constructor Details
-
Board
- Parameters:
title- title of the scoreboardplugin- plugin owning the scoreboard
-
-
Method Details
-
setPlayer
public void setPlayer(org.bukkit.entity.Player player) Sets the player for the board- Parameters:
player- owning player
-
getName
Gets the name of the scoreboard- Returns:
- scoreboard name
-
set
Sets a score to the scoreboard- Parameters:
label- label to usescore- score to show
-
showPlayer
public boolean showPlayer()Shows the board to it's player -
getPlayer
protected org.bukkit.entity.Player getPlayer() -
setHealthLabel
Deprecated.use setTextBelowNames in BoardManager insteadSets the health objective for the scoreboard - Recommended not to use this method - - Use PlayerBoard or BoardManager instead -- Parameters:
label- scoreboard label
-
clearDisplay
public void clearDisplay()Clears the side board display -
hashCode
public int hashCode()Hashes by name -
equals
Equates by name -
getScoreboard
public org.bukkit.scoreboard.Scoreboard getScoreboard()
-