Scoreboard
¶
文档版本:1.21.60.21
Scoreboard
类。script_api.minecraft/server.scoreboard.description
方法¶
addObjective
script_api.minecraft/server.scoreboard.addobjective.description
objectiveId
:string
- script_api.minecraft/server.scoreboard.addobjective.objectiveid.description
displayName
?:string
=null
- script_api.minecraft/server.scoreboard.addobjective.displayname.description
clearObjectiveAtDisplaySlot
script_api.minecraft/server.scoreboard.clearobjectiveatdisplayslot.description
displaySlotId
:DisplaySlotId
- script_api.minecraft/server.scoreboard.clearobjectiveatdisplayslot.displayslotid.description
- 返回值:
ScoreboardObjective
|undefined
- script_api.minecraft/server.scoreboard.clearobjectiveatdisplayslot.return
getObjective
script_api.minecraft/server.scoreboard.getobjective.description
objectiveId
:string
- script_api.minecraft/server.scoreboard.getobjective.objectiveid.description
- 返回值:
ScoreboardObjective
|undefined
- script_api.minecraft/server.scoreboard.getobjective.return
getObjectiveAtDisplaySlot
script_api.minecraft/server.scoreboard.getobjectiveatdisplayslot.description
getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions | undefined
displaySlotId
:DisplaySlotId
- script_api.minecraft/server.scoreboard.getobjectiveatdisplayslot.displayslotid.description
- 返回值:
ScoreboardObjectiveDisplayOptions
|undefined
- script_api.minecraft/server.scoreboard.getobjectiveatdisplayslot.return
getObjectives
script_api.minecraft/server.scoreboard.getobjectives.description
- 返回值:
ScoreboardObjective[]
- script_api.minecraft/server.scoreboard.getobjectives.return
getParticipants
script_api.minecraft/server.scoreboard.getparticipants.description
- 返回值:
ScoreboardIdentity[]
- script_api.minecraft/server.scoreboard.getparticipants.return
removeObjective
script_api.minecraft/server.scoreboard.removeobjective.description
objectiveId
:ScoreboardObjective
|string
- script_api.minecraft/server.scoreboard.removeobjective.objectiveid.description
- 返回值:
boolean
- script_api.minecraft/server.scoreboard.removeobjective.return
setObjectiveAtDisplaySlot
script_api.minecraft/server.scoreboard.setobjectiveatdisplayslot.description
setObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId, objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions): ScoreboardObjective | undefined
displaySlotId
:DisplaySlotId
- script_api.minecraft/server.scoreboard.setobjectiveatdisplayslot.displayslotid.description
objectiveDisplaySetting
:ScoreboardObjectiveDisplayOptions
- script_api.minecraft/server.scoreboard.setobjectiveatdisplayslot.objectivedisplaysetting.description
- 返回值:
ScoreboardObjective
|undefined
- script_api.minecraft/server.scoreboard.setobjectiveatdisplayslot.return