|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Statistic>
org.bukkit.Statistic
public enum Statistic
Represents a countable statistic, which is collected by the client
| Enum Constant Summary | |
|---|---|
BREAK_ITEM
|
|
DAMAGE_DEALT
|
|
DAMAGE_TAKEN
|
|
DEATHS
|
|
FISH_CAUGHT
|
|
MINE_BLOCK
|
|
MOB_KILLS
|
|
PLAYER_KILLS
|
|
USE_ITEM
|
|
| Method Summary | |
|---|---|
static Statistic |
getById(int id)
Gets the statistic associated with the given ID. |
int |
getId()
Gets the ID for this statistic. |
boolean |
isBlock()
Checks if this is a substatistic dealing with blocks (As opposed to items) |
boolean |
isSubstatistic()
Checks if this is a substatistic. |
static Statistic |
valueOf(String name)
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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Statistic DAMAGE_DEALT
public static final Statistic DAMAGE_TAKEN
public static final Statistic DEATHS
public static final Statistic MOB_KILLS
public static final Statistic PLAYER_KILLS
public static final Statistic FISH_CAUGHT
public static final Statistic MINE_BLOCK
public static final Statistic USE_ITEM
public static final Statistic BREAK_ITEM
| Method Detail |
|---|
public static final Statistic[] values()
for(Statistic c : Statistic.values())
System.out.println(c);
public static Statistic valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic int getId()
public boolean isSubstatistic()
isBlock()
public boolean isBlock()
public static Statistic getById(int id)
id - ID of the statistic to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||