Package org.bukkit
Enum Statistic
- All Implemented Interfaces:
- Serializable,- Comparable<Statistic>,- java.lang.constant.Constable,- Keyed
Represents a countable statistic, which is tracked by the server.
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionName is misleading, actually records ticks played.
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Return the namespaced identifier for this object.getType()Gets the type of this statistic.booleanisBlock()Checks if this is a substatistic dealing with blocks.booleanChecks if this is a substatistic.static StatisticReturns the enum constant of this type with the specified name.static Statistic[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
DAMAGE_DEALT
- 
DAMAGE_TAKEN
- 
DEATHS
- 
MOB_KILLS
- 
PLAYER_KILLS
- 
FISH_CAUGHT
- 
ANIMALS_BRED
- 
LEAVE_GAME
- 
JUMP
- 
DROP_COUNT
- 
DROP
- 
PICKUP
- 
PLAY_ONE_MINUTEName is misleading, actually records ticks played.
- 
TOTAL_WORLD_TIME
- 
WALK_ONE_CM
- 
WALK_ON_WATER_ONE_CM
- 
FALL_ONE_CM
- 
SNEAK_TIME
- 
CLIMB_ONE_CM
- 
FLY_ONE_CM
- 
WALK_UNDER_WATER_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
- 
TIME_SINCE_REST
- 
SWIM_ONE_CM
- 
DAMAGE_DEALT_ABSORBED
- 
DAMAGE_DEALT_RESISTED
- 
DAMAGE_BLOCKED_BY_SHIELD
- 
DAMAGE_ABSORBED
- 
DAMAGE_RESISTED
- 
CLEAN_SHULKER_BOX
- 
OPEN_BARREL
- 
INTERACT_WITH_BLAST_FURNACE
- 
INTERACT_WITH_SMOKER
- 
INTERACT_WITH_LECTERN
- 
INTERACT_WITH_CAMPFIRE
- 
INTERACT_WITH_CARTOGRAPHY_TABLE
- 
INTERACT_WITH_LOOM
- 
INTERACT_WITH_STONECUTTER
- 
BELL_RING
- 
RAID_TRIGGER
- 
RAID_WIN
- 
INTERACT_WITH_ANVIL
- 
INTERACT_WITH_GRINDSTONE
- 
TARGET_HIT
- 
INTERACT_WITH_SMITHING_TABLE
- 
STRIDER_ONE_CM
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getTypeGets the type of this statistic.- Returns:
- the type of this statistic
 
- 
isSubstatisticpublic boolean isSubstatistic()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- Returns:
- true if this is a substatistic
 
- 
isBlockpublic boolean isBlock()Checks if this is a substatistic dealing with blocks.This is a redundant method and equivalent to checking getType() == Type.BLOCK- Returns:
- true if this deals with blocks
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
 
-