public class AchievementPage
extends java.lang.Object
Constructor and Description |
---|
AchievementPage(java.lang.String name,
Achievement... achievements) |
Modifier and Type | Method and Description |
---|---|
static AchievementPage |
getAchievementPage(int index)
Will return an achievement page by its index on the list.
|
static AchievementPage |
getAchievementPage(java.lang.String name)
Will return an achievement page by its name.
|
static java.util.Set<AchievementPage> |
getAchievementPages()
Will return the list of achievement pages.
|
java.util.List<Achievement> |
getAchievements() |
java.lang.String |
getName() |
static java.lang.String |
getTitle(int index) |
static boolean |
isAchievementInPages(Achievement achievement)
Will return whether an achievement is in any page or not.
|
static void |
registerAchievementPage(AchievementPage page)
Registers an achievement page.
|
public AchievementPage(java.lang.String name, Achievement... achievements)
public java.lang.String getName()
public java.util.List<Achievement> getAchievements()
public static void registerAchievementPage(AchievementPage page)
page
- The page.public static AchievementPage getAchievementPage(int index)
index
- The page's index.public static AchievementPage getAchievementPage(java.lang.String name)
name
- The page's name.public static java.util.Set<AchievementPage> getAchievementPages()
public static boolean isAchievementInPages(Achievement achievement)
achievement
- The achievement.public static java.lang.String getTitle(int index)