|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.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)
Deprecated. Magic value |
int |
getId()
Deprecated. Magic value |
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 are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
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 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 name
NullPointerException
- if the argument is null@Deprecated public int getId()
public boolean isSubstatistic()
A substatistic exists in mass for each block or item, depending on isBlock()
public boolean isBlock()
@Deprecated 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 |