程序包 org.bukkit
枚举 Statistic
- 所有已实现的接口:
Serializable
,Comparable<Statistic>
,java.lang.constant.Constable
表示被服务器监测的统计数据
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明 -
方法概要
-
枚举常量详细资料
-
DAMAGE_DEALT
-
DAMAGE_TAKEN
-
DEATHS
-
MOB_KILLS
-
PLAYER_KILLS
-
FISH_CAUGHT
-
ANIMALS_BRED
-
LEAVE_GAME
-
JUMP
-
DROP
-
PICKUP
-
PLAY_ONE_TICK
-
WALK_ONE_CM
-
SWIM_ONE_CM
-
FALL_ONE_CM
-
SNEAK_TIME
-
CLIMB_ONE_CM
-
FLY_ONE_CM
-
DIVE_ONE_CM
-
MINECART_ONE_CM
-
BOAT_ONE_CM
-
PIG_ONE_CM
-
HORSE_ONE_CM
-
SPRINT_ONE_CM
-
CROUCH_ONE_CM
-
AVIATE_ONE_CM
-
MINE_BLOCK
-
USE_ITEM
-
BREAK_ITEM
-
CRAFT_ITEM
-
KILL_ENTITY
-
ENTITY_KILLED_BY
-
TIME_SINCE_DEATH
-
TALKED_TO_VILLAGER
-
TRADED_WITH_VILLAGER
-
CAKE_SLICES_EATEN
-
CAULDRON_FILLED
-
CAULDRON_USED
-
ARMOR_CLEANED
-
BANNER_CLEANED
-
BREWINGSTAND_INTERACTION
-
BEACON_INTERACTION
-
DROPPER_INSPECTED
-
HOPPER_INSPECTED
-
DISPENSER_INSPECTED
-
NOTEBLOCK_PLAYED
-
NOTEBLOCK_TUNED
-
FLOWER_POTTED
-
TRAPPED_CHEST_TRIGGERED
-
ENDERCHEST_OPENED
-
ITEM_ENCHANTED
-
RECORD_PLAYED
-
FURNACE_INTERACTION
-
CRAFTING_TABLE_INTERACTION
-
CHEST_OPENED
-
SLEEP_IN_BED
-
SHULKER_BOX_OPENED
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
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
-