Add-On Documentation
Preparing search index...
The search index is not available
8Crafter's Debug Sticks API
8Crafter's Debug Sticks API
Globals
modules
main
ScoreboardV2Objective
Class ScoreboardV2Objective
Index
Constructors
constructor
Properties
display
Name
id
scores
Methods
add
Score
delete
get
Participants
get
Score
get
Scores
has
Participant
is
Valid
load
remove
Participant
save
set
Score
toJSON
transfer
From
Scoreboard
get
new
Constructors
constructor
new
ScoreboardV2Objective
(
id
:
string
,
)
:
Globals
.
modules
.
main
.
ScoreboardV2Objective
Parameters
id
:
string
Returns
Globals
.
modules
.
main
.
ScoreboardV2Objective
Properties
display
Name
displayName
:
string
id
id
:
string
Private
scores
scores
:
{
[
playerId
:
string
]:
bigint
}
= {}
Methods
add
Score
addScore
(
participant
:
string
,
scoreToAdd
:
bigint
)
:
bigint
Parameters
participant
:
string
scoreToAdd
:
bigint
Returns
bigint
delete
delete
()
:
void
Returns
void
get
Participants
getParticipants
()
:
string
[]
Returns
string
[]
get
Score
getScore
(
participant
:
string
)
:
bigint
Parameters
participant
:
string
Returns
bigint
get
Scores
getScores
()
:
{
participant
:
string
;
score
:
bigint
}
[]
Returns
{
participant
:
string
;
score
:
bigint
}
[]
has
Participant
hasParticipant
(
participant
:
string
)
:
boolean
Parameters
participant
:
string
Returns
boolean
is
Valid
isValid
()
:
boolean
Returns
boolean
Private
load
load
()
:
void
Returns
void
Throws
Throws if the scoreboard has not been saved.
remove
Participant
removeParticipant
(
participant
:
string
)
:
boolean
Parameters
participant
:
string
Returns
boolean
Private
save
save
()
:
void
Returns
void
set
Score
setScore
(
participant
:
string
,
score
:
bigint
)
:
void
Parameters
participant
:
string
score
:
bigint
Returns
void
toJSON
toJSON
()
:
{
displayName
:
string
;
id
:
string
;
scores
:
{
[
playerId
:
string
]:
bigint
}
;
}
Returns
{
displayName
:
string
;
id
:
string
;
scores
:
{
[
playerId
:
string
]:
bigint
}
}
transfer
From
Scoreboard
transferFromScoreboard
(
scoreboard
:
ScoreboardObjective
)
:
void
Parameters
scoreboard
:
ScoreboardObjective
Returns
void
Static
get
get
(
objectiveId
:
string
)
:
Globals
.
modules
.
main
.
ScoreboardV2Objective
Parameters
objectiveId
:
string
Returns
Globals
.
modules
.
main
.
ScoreboardV2Objective
Static
new
new
(
objectiveId
:
string
,
displayName
?:
string
,
)
:
Globals
.
modules
.
main
.
ScoreboardV2Objective
Parameters
objectiveId
:
string
displayName
:
string
= objectiveId
Returns
Globals
.
modules
.
main
.
ScoreboardV2Objective
Version
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
display
Name
id
scores
Methods
add
Score
delete
get
Participants
get
Score
get
Scores
has
Participant
is
Valid
load
remove
Participant
save
set
Score
toJSON
transfer
From
Scoreboard
get
new
Add-On Documentation
8Crafter's Debug Sticks API
Loading...
Throws
Throws if the scoreboard has not been saved.