程序包 org.bukkit

枚举 Statistic

所有已实现的接口:
Serializable, Comparable<Statistic>, java.lang.constant.Constable

public enum Statistic extends Enum<Statistic>
表示被服务器监测的统计数据
  • 枚举常量详细资料

    • DAMAGE_DEALT

      public static final Statistic DAMAGE_DEALT
    • DAMAGE_TAKEN

      public static final Statistic DAMAGE_TAKEN
    • DEATHS

      public static final Statistic DEATHS
    • MOB_KILLS

      public static final Statistic MOB_KILLS
    • PLAYER_KILLS

      public static final Statistic PLAYER_KILLS
    • FISH_CAUGHT

      public static final Statistic FISH_CAUGHT
    • ANIMALS_BRED

      public static final Statistic ANIMALS_BRED
    • LEAVE_GAME

      public static final Statistic LEAVE_GAME
    • JUMP

      public static final Statistic JUMP
    • DROP

      public static final Statistic DROP
    • PICKUP

      public static final Statistic PICKUP
    • PLAY_ONE_TICK

      public static final Statistic PLAY_ONE_TICK
    • WALK_ONE_CM

      public static final Statistic WALK_ONE_CM
    • SWIM_ONE_CM

      public static final Statistic SWIM_ONE_CM
    • FALL_ONE_CM

      public static final Statistic FALL_ONE_CM
    • SNEAK_TIME

      public static final Statistic SNEAK_TIME
    • CLIMB_ONE_CM

      public static final Statistic CLIMB_ONE_CM
    • FLY_ONE_CM

      public static final Statistic FLY_ONE_CM
    • DIVE_ONE_CM

      public static final Statistic DIVE_ONE_CM
    • MINECART_ONE_CM

      public static final Statistic MINECART_ONE_CM
    • BOAT_ONE_CM

      public static final Statistic BOAT_ONE_CM
    • PIG_ONE_CM

      public static final Statistic PIG_ONE_CM
    • HORSE_ONE_CM

      public static final Statistic HORSE_ONE_CM
    • SPRINT_ONE_CM

      public static final Statistic SPRINT_ONE_CM
    • CROUCH_ONE_CM

      public static final Statistic CROUCH_ONE_CM
    • AVIATE_ONE_CM

      public static final Statistic AVIATE_ONE_CM
    • MINE_BLOCK

      public static final Statistic MINE_BLOCK
    • USE_ITEM

      public static final Statistic USE_ITEM
    • BREAK_ITEM

      public static final Statistic BREAK_ITEM
    • CRAFT_ITEM

      public static final Statistic CRAFT_ITEM
    • KILL_ENTITY

      public static final Statistic KILL_ENTITY
    • ENTITY_KILLED_BY

      public static final Statistic ENTITY_KILLED_BY
    • TIME_SINCE_DEATH

      public static final Statistic TIME_SINCE_DEATH
    • TALKED_TO_VILLAGER

      public static final Statistic TALKED_TO_VILLAGER
    • TRADED_WITH_VILLAGER

      public static final Statistic TRADED_WITH_VILLAGER
    • CAKE_SLICES_EATEN

      public static final Statistic CAKE_SLICES_EATEN
    • CAULDRON_FILLED

      public static final Statistic CAULDRON_FILLED
    • CAULDRON_USED

      public static final Statistic CAULDRON_USED
    • ARMOR_CLEANED

      public static final Statistic ARMOR_CLEANED
    • BREWINGSTAND_INTERACTION

      public static final Statistic BREWINGSTAND_INTERACTION
    • BEACON_INTERACTION

      public static final Statistic BEACON_INTERACTION
    • DROPPER_INSPECTED

      public static final Statistic DROPPER_INSPECTED
    • HOPPER_INSPECTED

      public static final Statistic HOPPER_INSPECTED
    • DISPENSER_INSPECTED

      public static final Statistic DISPENSER_INSPECTED
    • NOTEBLOCK_PLAYED

      public static final Statistic NOTEBLOCK_PLAYED
    • NOTEBLOCK_TUNED

      public static final Statistic NOTEBLOCK_TUNED
    • FLOWER_POTTED

      public static final Statistic FLOWER_POTTED
    • TRAPPED_CHEST_TRIGGERED

      public static final Statistic TRAPPED_CHEST_TRIGGERED
    • ENDERCHEST_OPENED

      public static final Statistic ENDERCHEST_OPENED
    • ITEM_ENCHANTED

      public static final Statistic ITEM_ENCHANTED
    • RECORD_PLAYED

      public static final Statistic RECORD_PLAYED
    • FURNACE_INTERACTION

      public static final Statistic FURNACE_INTERACTION
    • CRAFTING_TABLE_INTERACTION

      public static final Statistic CRAFTING_TABLE_INTERACTION
    • CHEST_OPENED

      public static final Statistic CHEST_OPENED
    • SLEEP_IN_BED

      public static final Statistic SLEEP_IN_BED
    • SHULKER_BOX_OPENED

      public static final Statistic SHULKER_BOX_OPENED
  • 方法详细资料

    • values

      public static Statistic[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static Statistic valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getType

      public Statistic.Type getType()
      获取这项统计数据的种类.

      原文:Gets the type of this statistic.

      返回:
      这项统计数据的种类
    • isSubstatistic

      public boolean isSubstatistic()
      检查该数据是否为次级统计数据.

      一项次级统计数据同时存在于每个方块、物品或实体(取决于getType()).

      这是个多余的方法,相当于检查getType() != Type.UNTYPED.

      原文:Checks if this is a substatistic.

      A substatistic exists en masse for each block, item, or entitytype, depending on getType().

      This is a redundant method and equivalent to checking getType() != Type.UNTYPED

      返回:
      如果为次级统计数据则返回true,否则返回false
    • isBlock

      public boolean isBlock()
      检查是否为一项用于处理方块的次级统计数据.

      这是个多余的方法,相当于检查getType() == Type.BLOCK.

      原文: Checks if this is a substatistic dealing with blocks.

      This is a redundant method and equivalent to checking getType() == Type.BLOCK

      返回:
      用于处理方块则返回true,否则返回false