|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Achievement> org.bukkit.Achievement
public enum Achievement
Represents an achievement, which may be given to players
Field Summary | |
---|---|
static int |
STATISTIC_OFFSET
The offset used to distinguish Achievements and Statistics |
Method Summary | |
---|---|
static Achievement |
getById(int id)
Gets the achievement associated with the given ID. |
int |
getId()
Gets the ID for this achievement. |
static Achievement |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Achievement[] |
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 Achievement OPEN_INVENTORY
public static final Achievement MINE_WOOD
public static final Achievement BUILD_WORKBENCH
public static final Achievement BUILD_PICKAXE
public static final Achievement BUILD_FURNACE
public static final Achievement ACQUIRE_IRON
public static final Achievement BUILD_HOE
public static final Achievement MAKE_BREAD
public static final Achievement BAKE_CAKE
public static final Achievement BUILD_BETTER_PICKAXE
public static final Achievement COOK_FISH
public static final Achievement ON_A_RAIL
public static final Achievement BUILD_SWORD
public static final Achievement KILL_ENEMY
public static final Achievement KILL_COW
public static final Achievement FLY_PIG
public static final Achievement SNIPE_SKELETON
public static final Achievement GET_DIAMONDS
public static final Achievement NETHER_PORTAL
public static final Achievement GHAST_RETURN
public static final Achievement GET_BLAZE_ROD
public static final Achievement BREW_POTION
public static final Achievement END_PORTAL
public static final Achievement THE_END
public static final Achievement ENCHANTMENTS
public static final Achievement OVERKILL
public static final Achievement BOOKCASE
Field Detail |
---|
public static final int STATISTIC_OFFSET
Method Detail |
---|
public static final Achievement[] values()
for(Achievement c : Achievement.values()) System.out.println(c);
public static Achievement 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()
STATISTIC_OFFSET
public static Achievement getById(int id)
STATISTIC_OFFSET
id
- ID of the achievement to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |