|
||||||||||
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 tracked by the server.
Nested Class Summary | |
---|---|
static class |
Statistic.Type
The type of statistic. |
Method Summary | |
---|---|
Statistic.Type |
getType()
Gets the type of this statistic. |
boolean |
isBlock()
Checks if this is a substatistic dealing with blocks. |
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 ANIMALS_BRED
public static final Statistic TREASURE_FISHED
public static final Statistic JUNK_FISHED
public static final Statistic LEAVE_GAME
public static final Statistic JUMP
public static final Statistic DROP
public static final Statistic PLAY_ONE_TICK
public static final Statistic WALK_ONE_CM
public static final Statistic SWIM_ONE_CM
public static final Statistic FALL_ONE_CM
public static final Statistic CLIMB_ONE_CM
public static final Statistic FLY_ONE_CM
public static final Statistic DIVE_ONE_CM
public static final Statistic MINECART_ONE_CM
public static final Statistic BOAT_ONE_CM
public static final Statistic PIG_ONE_CM
public static final Statistic HORSE_ONE_CM
public static final Statistic MINE_BLOCK
public static final Statistic USE_ITEM
public static final Statistic BREAK_ITEM
public static final Statistic CRAFT_ITEM
public static final Statistic KILL_ENTITY
public static final Statistic ENTITY_KILLED_BY
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 nullpublic Statistic.Type getType()
public boolean isSubstatistic()
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
public boolean isBlock()
This is a redundant method and equivalent to checking
getType() == Type.BLOCK
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |