Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.Statistic Enum Reference

Classes

enum  Type
 

Public Member Functions

Type getType ()
 
boolean isSubstatistic ()
 
boolean isBlock ()
 

Public Attributes

 DAMAGE_DEALT
 
 DAMAGE_TAKEN
 
 DEATHS
 
 MOB_KILLS
 
 PLAYER_KILLS
 
 FISH_CAUGHT
 
 ANIMALS_BRED
 
 TREASURE_FISHED
 
 JUNK_FISHED
 
 LEAVE_GAME
 
 JUMP
 
 DROP
 
 PLAY_ONE_TICK
 
 WALK_ONE_CM
 
 SWIM_ONE_CM
 
 FALL_ONE_CM
 
 CLIMB_ONE_CM
 
 FLY_ONE_CM
 
 DIVE_ONE_CM
 
 MINECART_ONE_CM
 
 BOAT_ONE_CM
 
 PIG_ONE_CM
 
 HORSE_ONE_CM
 
 MINE_BLOCK =(Type.BLOCK)
 
 USE_ITEM =(Type.ITEM)
 
 BREAK_ITEM =(Type.ITEM)
 
 CRAFT_ITEM =(Type.ITEM)
 
 KILL_ENTITY =(Type.ENTITY)
 
 ENTITY_KILLED_BY =(Type.ENTITY)
 

Detailed Description

Represents a countable statistic, which is tracked by the server.

Definition at line 6 of file Statistic.java.

Member Function Documentation

Type org.bukkit.Statistic.getType ( )

Gets the type of this statistic.

Returns
the type of this statistic

Definition at line 52 of file Statistic.java.

52  {
53  return type;
54  }
boolean org.bukkit.Statistic.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

Definition at line 79 of file Statistic.java.

References org.bukkit.Statistic.Type.BLOCK.

79  {
80  return type == Type.BLOCK;
81  }
boolean org.bukkit.Statistic.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

Definition at line 67 of file Statistic.java.

References org.bukkit.Statistic.Type.UNTYPED.

67  {
68  return type != Type.UNTYPED;
69  }

The documentation for this enum was generated from the following file: