ScoreboardObjective
¶
文档版本:1.21.60.21
ScoreboardObjective
类。script_api.minecraft/server.scoreboardobjective.description
属性¶
displayName
displayName
:string
- script_api.minecraft/server.scoreboardobjective.displayname.description
id
id
:string
- script_api.minecraft/server.scoreboardobjective.id.description
方法¶
addScore
script_api.minecraft/server.scoreboardobjective.addscore.description
participant
:Entity
|ScoreboardIdentity
|string
- script_api.minecraft/server.scoreboardobjective.addscore.participant.description
scoreToAdd
:int32
- script_api.minecraft/server.scoreboardobjective.addscore.scoretoadd.description
- 返回值:
int32
- script_api.minecraft/server.scoreboardobjective.addscore.return
getParticipants
script_api.minecraft/server.scoreboardobjective.getparticipants.description
getScore
script_api.minecraft/server.scoreboardobjective.getscore.description
participant
:Entity
|ScoreboardIdentity
|string
- script_api.minecraft/server.scoreboardobjective.getscore.participant.description
- 返回值:
int32
|undefined
- script_api.minecraft/server.scoreboardobjective.getscore.return
getScores
script_api.minecraft/server.scoreboardobjective.getscores.description
- 返回值:
ScoreboardScoreInfo[]
- script_api.minecraft/server.scoreboardobjective.getscores.return
hasParticipant
script_api.minecraft/server.scoreboardobjective.hasparticipant.description
participant
:Entity
|ScoreboardIdentity
|string
- script_api.minecraft/server.scoreboardobjective.hasparticipant.participant.description
- 返回值:
boolean
- script_api.minecraft/server.scoreboardobjective.hasparticipant.return
isValid
script_api.minecraft/server.scoreboardobjective.isvalid.description
- 返回值:
boolean
- script_api.minecraft/server.scoreboardobjective.isvalid.return
removeParticipant
script_api.minecraft/server.scoreboardobjective.removeparticipant.description
participant
:Entity
|ScoreboardIdentity
|string
- script_api.minecraft/server.scoreboardobjective.removeparticipant.participant.description
- 返回值:
boolean
- script_api.minecraft/server.scoreboardobjective.removeparticipant.return
setScore
script_api.minecraft/server.scoreboardobjective.setscore.description
participant
:Entity
|ScoreboardIdentity
|string
- script_api.minecraft/server.scoreboardobjective.setscore.participant.description
score
:int32
- script_api.minecraft/server.scoreboardobjective.setscore.score.description
- 返回值:
void
- script_api.minecraft/server.scoreboardobjective.setscore.return