跳转至

Scoreboard

文档版本:1.21.0.24

Scoreboard类。script_api.minecraft/server.scoreboard.description

方法

addObjective

script_api.minecraft/server.scoreboard.addobjective.description

addObjective(objectiveId: string, displayName?: string): ScoreboardObjective
clearObjectiveAtDisplaySlot

script_api.minecraft/server.scoreboard.clearobjectiveatdisplayslot.description

clearObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjective | undefined
getObjective

script_api.minecraft/server.scoreboard.getobjective.description

getObjective(objectiveId: string): ScoreboardObjective | undefined
getObjectiveAtDisplaySlot

script_api.minecraft/server.scoreboard.getobjectiveatdisplayslot.description

getObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId): ScoreboardObjectiveDisplayOptions | undefined
getObjectives

script_api.minecraft/server.scoreboard.getobjectives.description

getObjectives(): ScoreboardObjective[]
getParticipants

script_api.minecraft/server.scoreboard.getparticipants.description

getParticipants(): ScoreboardIdentity[]
removeObjective

script_api.minecraft/server.scoreboard.removeobjective.description

removeObjective(objectiveId: ScoreboardObjective | string): boolean
setObjectiveAtDisplaySlot

script_api.minecraft/server.scoreboard.setobjectiveatdisplayslot.description

setObjectiveAtDisplaySlot(displaySlotId: DisplaySlotId, objectiveDisplaySetting: ScoreboardObjectiveDisplayOptions): ScoreboardObjective | undefined