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;
}
Aggregations