Search in sources :

Example 1 with ElementAchievement

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

the class AchievementRegistry method addAchievement.

/**
     * Adds default achievement for an {@link minechem.chemical.Element}
     *
     * @param element the element to create an achievement for
     * @return the added {@link net.minecraft.stats.Achievement}
     */
public Achievement addAchievement(Element element) {
    int[] position = PeriodicTableHelper.getPosition(element);
    ElementAchievement achievement = new ElementAchievement(element, position[0] - 5, position[1] - 8);
    elementsAchievementMap.put(element, achievement);
    return achievement;
}
Also used : ElementAchievement(minechem.achievement.ElementAchievement)

Aggregations

ElementAchievement (minechem.achievement.ElementAchievement)1