Search in sources :

Example 1 with ElementAchievementPage

use of minechem.achievement.ElementAchievementPage in project Minechem by iopleke.

the class AchievementRegistry method registerElementAchievements.

/**
     * Registers {@link minechem.achievement.ElementAchievement}s to the periodic table page
     */
public void registerElementAchievements() {
    Collection<Achievement> achievements = elementsAchievementMap.values();
    for (Achievement achievement : achievements) {
        achievement.registerStat();
    }
    elementsPage = new ElementAchievementPage("Periodic Table", achievements.toArray(new Achievement[achievements.size()]));
    AchievementPage.registerAchievementPage(elementsPage);
}
Also used : ElementAchievementPage(minechem.achievement.ElementAchievementPage) Achievement(net.minecraft.stats.Achievement) ElementAchievement(minechem.achievement.ElementAchievement)

Aggregations

ElementAchievement (minechem.achievement.ElementAchievement)1 ElementAchievementPage (minechem.achievement.ElementAchievementPage)1 Achievement (net.minecraft.stats.Achievement)1