Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.scoreboard.Score Interface Reference

Public Member Functions

OfflinePlayer getPlayer ()
 
String getEntry ()
 
Objective getObjective ()
 
int getScore () throws IllegalStateException
 
void setScore (int score) throws IllegalStateException
 
Scoreboard getScoreboard ()
 

Detailed Description

A score entry for an entry on an objective. Changing this will not affect any other objective or scoreboard.

Definition at line 10 of file Score.java.

Member Function Documentation

String org.bukkit.scoreboard.Score.getEntry ( )

Gets the entry being tracked by this Score

Returns
this Score's tracked entry
Objective org.bukkit.scoreboard.Score.getObjective ( )

Gets the Objective being tracked by this Score

Returns
this Score's tracked objective
OfflinePlayer org.bukkit.scoreboard.Score.getPlayer ( )

Gets the OfflinePlayer being tracked by this Score

Returns
this Score's tracked player
Deprecated:
Scoreboards can contain entries that aren't players
See also
getEntry()
int org.bukkit.scoreboard.Score.getScore ( ) throws IllegalStateException

Gets the current score

Returns
the current score
Exceptions
IllegalStateExceptionif the associated objective has been unregistered
Scoreboard org.bukkit.scoreboard.Score.getScoreboard ( )

Gets the scoreboard for the associated objective.

Returns
the owning objective's scoreboard, or null if it has been unregistered
void org.bukkit.scoreboard.Score.setScore ( int  score) throws IllegalStateException

Sets the current score.

Parameters
scoreNew score
Exceptions
IllegalStateExceptionif the associated objective has been unregistered

The documentation for this interface was generated from the following file: