Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.player |
Modifier and Type | Method and Description |
---|---|
Achievement |
UnsafeValues.getAchievementFromInternalName(String name)
Deprecated.
|
Achievement |
Achievement.getParent()
Returns the parent achievement of this achievement, or null if none.
|
static Achievement |
Achievement.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Achievement[] |
Achievement.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Player.awardAchievement(Achievement achievement)
Awards the given achievement and any parent achievements that the
player does not have.
|
boolean |
Player.hasAchievement(Achievement achievement)
Gets whether this player has the given achievement.
|
void |
Player.removeAchievement(Achievement achievement)
Removes the given achievement and any children achievements that the
player has.
|
Modifier and Type | Method and Description |
---|---|
Achievement |
PlayerAchievementAwardedEvent.getAchievement()
Gets the Achievement being awarded.
|
Constructor and Description |
---|
PlayerAchievementAwardedEvent(Player player,
Achievement achievement) |
Copyright © 2016. All rights reserved.