Optional
displayName: stringReadonly
objectiveThe name of the objective.
Readonly
participantsThe participants of the objective.
Protected
Readonly
scoreboardThe scoreboard the objective is binded to.
Protected
Readonly
worldThe world the objective is binded to.
Adds a participant to the objective.
The identity of the participant to add.
The initial score of the participant.
Adds a score to the participant in the objective.
The identity of the participant.
The score to add.
The new score of the participant.
Clears the scores of all the participants in the objective.
Gets the specified identity from the objective.
The identity to get.
The identity if found, undefined otherwise.
Get all the participants in the objective.
Gets the score of the participant in the objective.
The identity of the participant.
The score of the participant, null if the participant is not in the objective.
Checks if the specified identity is a participant in the objective.
The identity to check.
True if the identity is a participant in the objective, false otherwise.
Removes a participant from the objective using the specified identity.
The identity of the participant to remove.
True if the participant was removed, false otherwise.
Sets the score of the participant in the objective.
The identity of the participant.
The new score of the participant.
The display name of the objective.