public interface Score
| Modifier and Type | Method and Description | 
|---|---|
@NotNull String | 
getEntry()
Gets the entry being tracked by this Score 
 | 
@NotNull Objective | 
getObjective()
Gets the Objective being tracked by this Score 
 | 
@NotNull OfflinePlayer | 
getPlayer()
Deprecated. 
 
Scoreboards can contain entries that aren't players 
 | 
int | 
getScore()
Gets the current score 
 | 
@Nullable Scoreboard | 
getScoreboard()
Gets the scoreboard for the associated objective. 
 | 
boolean | 
isScoreSet()
Shows if this score has been set at any point in time. 
 | 
void | 
setScore(int score)
Sets the current score. 
 | 
@Deprecated @NotNull @NotNull OfflinePlayer getPlayer()
getEntry()@NotNull @NotNull String getEntry()
@NotNull @NotNull Objective getObjective()
int getScore()
      throws IllegalStateException
IllegalStateException - if the associated objective has been
     unregisteredvoid setScore(int score)
       throws IllegalStateException
score - New scoreIllegalStateException - if the associated objective has been
     unregisteredboolean isScoreSet()
            throws IllegalStateException
IllegalStateException - if the associated objective has been
     unregistered@Nullable @Nullable Scoreboard getScoreboard()
unregisteredCopyright © 2021. All rights reserved.