# 接口的使用
org.bukkit.scoreboard.Criteria

使用Criteria的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.
org.bukkit.scoreboard
用于管理客户端计分板显示系统的类.

- ## org.bukkit中Criteria的使用

  返回Criteria的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull Criteria`
  Bukkit.`getScoreboardCriteria(@NotNull String name)`
  Get (or create) a new `Criteria` by its name.
  `@NotNull Criteria`
  Server.`getScoreboardCriteria(@NotNull String name)`
  Get (or create) a new `Criteria` by its name.

- ## org.bukkit.scoreboard中Criteria的使用

  声明为Criteria的org.bukkit.scoreboard中的字段
  修饰符和类型
  字段
  说明
  `static final Criteria`
  Criteria.`AIR`
  Mirrors the player's air supply (0 for no air, 300 for maximum air).
  `static final Criteria`
  Criteria.`ARMOR`
  Mirrors the player's armor points (0 for no armor, 20 for maximum armor).
  `static final Criteria`
  Criteria.`DEATH_COUNT`
  Increments automatically when a player dies.
  `static final Criteria`
  Criteria.`DUMMY`
  The dummy criteria.
  `static final Criteria`
  Criteria.`FOOD`
  Mirrors the player's food points (0 for no food, 20 for maximum food).
  `static final Criteria`
  Criteria.`HEALTH`
  Mirrors the player's health points (0 for no health, 20 for maximum default health).
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_AQUA`
  Increments automatically when a player is killed by a player on the aqua team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_BLACK`
  Increments automatically when a player is killed by a player on the black team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_BLUE`
  Increments automatically when a player is killed by a player on the blue team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_AQUA`
  Increments automatically when a player is killed by a player on the dark aqua team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_BLUE`
  Increments automatically when a player is killed by a player on the dark blue team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_GRAY`
  Increments automatically when a player is killed by a player on the dark gray team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_GREEN`
  Increments automatically when a player is killed by a player on the dark green team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_PURPLE`
  Increments automatically when a player is killed by a player on the dark purple team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_DARK_RED`
  Increments automatically when a player is killed by a player on the dark red team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_GOLD`
  Increments automatically when a player is killed by a player on the gold team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_GRAY`
  Increments automatically when a player is killed by a player on the gray team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_GREEN`
  Increments automatically when a player is killed by a player on the green team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_LIGHT_PURPLE`
  Increments automatically when a player is killed by a player on the light purple team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_RED`
  Increments automatically when a player is killed by a player on the red team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_WHITE`
  Increments automatically when a player is killed by a player on the white team.
  `static final Criteria`
  Criteria.`KILLED_BY_TEAM_YELLOW`
  Increments automatically when a player is killed by a player on the yellow team.
  `static final Criteria`
  Criteria.`LEVEL`
  Mirrors the player's experience level.
  `static final Criteria`
  Criteria.`PLAYER_KILL_COUNT`
  Increments automatically when a player kills another player.
  `static final Criteria`
  Criteria.`TEAM_KILL_AQUA`
  Increments automatically when a player kills another player on the aqua team.
  `static final Criteria`
  Criteria.`TEAM_KILL_BLACK`
  Increments automatically when a player kills another player on the black team.
  `static final Criteria`
  Criteria.`TEAM_KILL_BLUE`
  Increments automatically when a player kills another player on the blue team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_AQUA`
  Increments automatically when a player kills another player on the dark aqua team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_BLUE`
  Increments automatically when a player kills another player on the dark blue team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_GRAY`
  Increments automatically when a player kills another player on the dark gray team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_GREEN`
  Increments automatically when a player kills another player on the dark green team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_PURPLE`
  Increments automatically when a player kills another player on the dark purple team.
  `static final Criteria`
  Criteria.`TEAM_KILL_DARK_RED`
  Increments automatically when a player kills another player on the dark red team.
  `static final Criteria`
  Criteria.`TEAM_KILL_GOLD`
  Increments automatically when a player kills another player on the gold team.
  `static final Criteria`
  Criteria.`TEAM_KILL_GRAY`
  Increments automatically when a player kills another player on the gray team.
  `static final Criteria`
  Criteria.`TEAM_KILL_GREEN`
  Increments automatically when a player kills another player on the green team.
  `static final Criteria`
  Criteria.`TEAM_KILL_LIGHT_PURPLE`
  Increments automatically when a player kills another player on the light purple team.
  `static final Criteria`
  Criteria.`TEAM_KILL_RED`
  Increments automatically when a player kills another player on the red team.
  `static final Criteria`
  Criteria.`TEAM_KILL_WHITE`
  Increments automatically when a player kills another player on the white team.
  `static final Criteria`
  Criteria.`TEAM_KILL_YELLOW`
  Increments automatically when a player kills another player on the yellow team.
  `static final Criteria`
  Criteria.`TOTAL_KILL_COUNT`
  Increments automatically when a player kills another living entity.
  `static final Criteria`
  Criteria.`TRIGGER`
  The trigger criteria.
  `static final Criteria`
  Criteria.`XP`
  Mirrors the player's experience points.
  返回Criteria的org.bukkit.scoreboard中的方法
  修饰符和类型
  方法
  说明
  `static @NotNull Criteria`
  Criteria.`create(@NotNull String name)`
  Get (or create) a new `Criteria` by its name.
  `@NotNull Criteria`
  Objective.`getTrackedCriteria()`
  获取此计分项跟踪的准则.
  `static @NotNull Criteria`
  Criteria.`statistic(@NotNull Statistic statistic)`
  Get a `Criteria` for the specified statistic.
  `static @NotNull Criteria`
  Criteria.`statistic(@NotNull Statistic statistic, @NotNull EntityType entityType)`
  Get a `Criteria` for the specified statistic pertaining to an entity type.
  `static @NotNull Criteria`
  Criteria.`statistic(@NotNull Statistic statistic, @NotNull Material material)`
  Get a `Criteria` for the specified statistic pertaining to blocks or items.
  参数类型为Criteria的org.bukkit.scoreboard中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Set<Objective>`
  Scoreboard.`getObjectivesByCriteria(@NotNull Criteria criteria)`
  获取使用此准则的所有计分项.
  `@NotNull Objective`
  Scoreboard.`registerNewObjective(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName)`
  Registers an Objective on this Scoreboard
  `@NotNull Objective`
  Scoreboard.`registerNewObjective(@NotNull String name, @NotNull Criteria criteria, @NotNull String displayName, @NotNull RenderType renderType)`
  Registers an Objective on this Scoreboard