接口的使用
org.bukkit.scoreboard.Objective
-
org.bukkit.scoreboard中Objective的使用
修饰符和类型方法说明Score.getObjective()
获取此分数记录所属的计分项.Scoreboard.getObjective
(@NotNull String name) 根据名称获取计分项.Scoreboard.getObjective
(@NotNull DisplaySlot slot) 获取计分板展示在指定位置的计分项.Scoreboard.registerNewObjective
(@NotNull String name, @NotNull String criteria) 已过时。应明确指定计分项的显示名Scoreboard.registerNewObjective
(@NotNull String name, @NotNull String criteria, @NotNull String displayName) Scoreboard.registerNewObjective
(@NotNull String name, @NotNull String criteria, @NotNull String displayName, @NotNull RenderType renderType) Scoreboard.registerNewObjective
(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName) Registers an Objective on this ScoreboardScoreboard.registerNewObjective
(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName, @NotNull RenderType renderType) Registers an Objective on this Scoreboard修饰符和类型方法说明Scoreboard.getObjectives()
获取计分板上的所有计分项.Scoreboard.getObjectivesByCriteria
(@NotNull String criteria) Scoreboard.getObjectivesByCriteria
(@NotNull Criteria criteria) 获取使用此准则的所有计分项.