|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Objective
An objective on a scoreboard that can show scores specific to players. This
objective is only relevant to the display of the associated scoreboard.
| Method Summary | |
|---|---|
String |
getCriteria()
Gets the criteria this objective tracks. |
String |
getDisplayName()
Gets the name displayed to players for this objective |
DisplaySlot |
getDisplaySlot()
Gets the display slot this objective is displayed at. |
String |
getName()
Gets the name of this Objective |
Score |
getScore(OfflinePlayer player)
Gets a player's Score for an Objective on this Scoreboard |
Scoreboard |
getScoreboard()
Gets the scoreboard to which this objective is attached. |
boolean |
isModifiable()
Gets if the objective's scores can be modified directly by a plugin. |
void |
setDisplayName(String displayName)
Sets the name displayed to players for this objective. |
void |
setDisplaySlot(DisplaySlot slot)
Sets this objective to display on the specified slot for the scoreboard, removing it from any other display slot. |
void |
unregister()
Unregisters this objective from the scoreboard. |
| Method Detail |
|---|
String getName()
throws IllegalStateException
IllegalStateException - if this objective has been unregistered
String getDisplayName()
throws IllegalStateException
IllegalStateException - if this objective has been unregistered
void setDisplayName(String displayName)
throws IllegalStateException,
IllegalArgumentException
displayName - Display name to set
IllegalStateException - if this objective has been unregistered
IllegalArgumentException - if displayName is null
IllegalArgumentException - if displayName is longer than 32
characters.
String getCriteria()
throws IllegalStateException
IllegalStateException - if this objective has been unregistered
boolean isModifiable()
throws IllegalStateException
IllegalStateException - if this objective has been unregisteredCriterias.HEALTHScoreboard getScoreboard()
unregistered
void unregister()
throws IllegalStateException
scoreboard.
IllegalStateException - if this objective has been unregistered
void setDisplaySlot(DisplaySlot slot)
throws IllegalStateException
slot - display slot to change, or null to not display
IllegalStateException - if this objective has been unregistered
DisplaySlot getDisplaySlot()
throws IllegalStateException
IllegalStateException - if this objective has been unregistered
Score getScore(OfflinePlayer player)
throws IllegalArgumentException,
IllegalStateException
player - Player for the Score
IllegalArgumentException - if player is null
IllegalStateException - if this objective has been unregistered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||