Package org.bukkit
Enum Achievement
java.lang.Object
java.lang.Enum<Achievement>
org.bukkit.Achievement
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Achievement>
,java.lang.constant.Constable
public enum Achievement extends java.lang.Enum<Achievement>
Represents an achievement, which may be given to players.
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description Achievement
getParent()
Returns the parent achievement of this achievement, or null if none.boolean
hasParent()
Returns whether or not this achievement has a parent achievement.static Achievement
valueOf(java.lang.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 are declared.
-
Enum Constant Details
-
OPEN_INVENTORY
-
MINE_WOOD
-
BUILD_WORKBENCH
-
BUILD_PICKAXE
-
BUILD_FURNACE
-
ACQUIRE_IRON
-
BUILD_HOE
-
MAKE_BREAD
-
BAKE_CAKE
-
BUILD_BETTER_PICKAXE
-
COOK_FISH
-
ON_A_RAIL
-
BUILD_SWORD
-
KILL_ENEMY
-
KILL_COW
-
FLY_PIG
-
SNIPE_SKELETON
-
GET_DIAMONDS
-
NETHER_PORTAL
-
GHAST_RETURN
-
GET_BLAZE_ROD
-
BREW_POTION
-
END_PORTAL
-
THE_END
-
ENCHANTMENTS
-
OVERKILL
-
BOOKCASE
-
EXPLORE_ALL_BIOMES
-
SPAWN_WITHER
-
KILL_WITHER
-
FULL_BEACON
-
BREED_COW
-
DIAMONDS_TO_YOU
-
OVERPOWERED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
hasParent
public boolean hasParent()Returns whether or not this achievement has a parent achievement.- Returns:
- whether the achievement has a parent achievement
-
getParent
Returns the parent achievement of this achievement, or null if none.- Returns:
- the parent achievement or null
-