package modernmetals.init;

import modernmetals.ModernMetals;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.AchievementPage;

/** initializer for achievements */
public abstract class Achievements {

	public static AchievementPage page;

	public static Achievement aluminumbrass_maker; // make blend
	public static Achievement galvanizedsteel_maker; // make blend
	public static Achievement nichrome_maker; // make blend
	public static Achievement stainlesssteel_maker; // make blend
	public static Achievement titanium_maker; // make blend

	private static boolean initDone = false;
	public static void init() {
		if(initDone) return;

		page = new AchievementPage(ModernMetals.NAME);
		AchievementPage.registerAchievementPage(page);

		aluminumbrass_maker = makeAchievement("aluminumbrass_maker",cyano.basemetals.init.Achievements.metallurgy,0,0,Items.aluminumbrass_ingot);
		galvanizedsteel_maker = makeAchievement("galvanizedsteel_maker",cyano.basemetals.init.Achievements.metallurgy,0,1,Items.galvanizedsteel_ingot);
		nichrome_maker = makeAchievement("nichrome_maker",cyano.basemetals.init.Achievements.metallurgy,0,2,Items.nichrome_ingot);
		stainlesssteel_maker = makeAchievement("stainnesssteel_maker",cyano.basemetals.init.Achievements.metallurgy,0,3,Items.stainlesssteel_ingot);
		titanium_maker = makeAchievement("titanium_maker",cyano.basemetals.init.Achievements.metallurgy,0,4,Items.titanium_ingot);

		initDone = true;
	}

	private static Achievement makeAchievement(String baseName, Achievement requirement, int x, int y, Item icon) {
		return makeAchievement( baseName,  requirement,  x,  y, new ItemStack( icon));
	}

	private static Achievement makeAchievement(String baseName, Achievement requirement, int x, int y, Block icon) {
		return makeAchievement( baseName,  requirement,  x,  y, new ItemStack( icon));
	}

	private static Achievement makeAchievement(String baseName, Achievement requirement, int x, int y, ItemStack icon) {
		Achievement a = new Achievement(baseName,baseName,x,y,icon,requirement);
		a.registerStat();
		page.getAchievements().add(a);
		return a;
	}	
}

@@ -452,32 +452,33 @@
 ement galvanized
+_
 steel_maker; // 
@@ -480,32 +480,32 @@
 ; // make blend%0A
-
 %09public static A
@@ -573,32 +573,33 @@
 vement stainless
+_
 steel_maker; // 
@@ -1005,32 +1005,33 @@
 t);%0A%09%09galvanized
+_
 steel_maker = ma
@@ -1051,24 +1051,25 @@
 (%22galvanized
+_
 steel_maker%22
@@ -1281,24 +1281,25 @@
 %0A%09%09stainless
+_
 steel_maker 
@@ -1326,12 +1326,13 @@
 tain
-n
+l
 ess
+_
 stee

Fix achievements