程序包 org.bukkit

枚举 Statistic

所有已实现的接口:
Serializable, Comparable<Statistic>, Constable, Keyed

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

    • 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_COUNT

      public static final Statistic DROP_COUNT
    • DROP

      public static final Statistic DROP
    • PICKUP

      public static final Statistic PICKUP
    • PLAY_ONE_MINUTE

      public static final Statistic PLAY_ONE_MINUTE
      Name is misleading, actually records ticks played.
    • TOTAL_WORLD_TIME

      public static final Statistic TOTAL_WORLD_TIME
    • WALK_ONE_CM

      public static final Statistic WALK_ONE_CM
    • WALK_ON_WATER_ONE_CM

      public static final Statistic WALK_ON_WATER_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
    • WALK_UNDER_WATER_ONE_CM

      public static final Statistic WALK_UNDER_WATER_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
    • TIME_SINCE_REST

      public static final Statistic TIME_SINCE_REST
    • SWIM_ONE_CM

      public static final Statistic SWIM_ONE_CM
    • DAMAGE_DEALT_ABSORBED

      public static final Statistic DAMAGE_DEALT_ABSORBED
    • DAMAGE_DEALT_RESISTED

      public static final Statistic DAMAGE_DEALT_RESISTED
    • DAMAGE_BLOCKED_BY_SHIELD

      public static final Statistic DAMAGE_BLOCKED_BY_SHIELD
    • DAMAGE_ABSORBED

      public static final Statistic DAMAGE_ABSORBED
    • DAMAGE_RESISTED

      public static final Statistic DAMAGE_RESISTED
    • CLEAN_SHULKER_BOX

      public static final Statistic CLEAN_SHULKER_BOX
    • OPEN_BARREL

      public static final Statistic OPEN_BARREL
    • INTERACT_WITH_BLAST_FURNACE

      public static final Statistic INTERACT_WITH_BLAST_FURNACE
    • INTERACT_WITH_SMOKER

      public static final Statistic INTERACT_WITH_SMOKER
    • INTERACT_WITH_LECTERN

      public static final Statistic INTERACT_WITH_LECTERN
    • INTERACT_WITH_CAMPFIRE

      public static final Statistic INTERACT_WITH_CAMPFIRE
    • INTERACT_WITH_CARTOGRAPHY_TABLE

      public static final Statistic INTERACT_WITH_CARTOGRAPHY_TABLE
    • INTERACT_WITH_LOOM

      public static final Statistic INTERACT_WITH_LOOM
    • INTERACT_WITH_STONECUTTER

      public static final Statistic INTERACT_WITH_STONECUTTER
    • BELL_RING

      public static final Statistic BELL_RING
    • RAID_TRIGGER

      public static final Statistic RAID_TRIGGER
    • RAID_WIN

      public static final Statistic RAID_WIN
    • INTERACT_WITH_ANVIL

      public static final Statistic INTERACT_WITH_ANVIL
    • INTERACT_WITH_GRINDSTONE

      public static final Statistic INTERACT_WITH_GRINDSTONE
    • TARGET_HIT

      public static final Statistic TARGET_HIT
    • INTERACT_WITH_SMITHING_TABLE

      public static final Statistic INTERACT_WITH_SMITHING_TABLE
    • STRIDER_ONE_CM

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

    • values

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

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

      @NotNull public @NotNull 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
    • getKey

      @NotNull public @NotNull NamespacedKey getKey()
      从接口复制的说明: Keyed
      返回用于此对象的命名空间标识符.

      原文:Return the namespaced identifier for this object.

      指定者:
      getKey 在接口中 Keyed
      返回:
      标识此对象的 key