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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionName is misleading, actually records ticks played. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Return the namespaced identifier for this object.getType()
Gets the type of this statistic.boolean
isBlock()
Checks if this is a substatistic dealing with blocks.boolean
Checks if this is a substatistic.static Statistic
Returns 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_MINUTE
Name 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
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getType
Gets the type of this statistic.- Returns:
- the type of this statistic
-
isSubstatistic
public 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
-
isBlock
public 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
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object.
-