package minestrapteam.mods.minestrappolation.lib;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.stats.Achievement;
import net.minecraftforge.common.AchievementPage;
public class MAchievements
{
public static Achievement minestrapp = new Achievement("achievement.minestrap", "minestrap", 0, 0,
MBlocks.copper_ore, null).setSpecial();
public static Achievement heart = new Achievement("achievement.heart", "heart", 4, 1,
MItems.heart_container, minestrapp)
.setSpecial();
public static Achievement stonecutter = new Achievement("achievement.stonecutter", "stonecutter", -1, 2,
MBlocks.stonecutter, (Achievement) minestrapp);
public static Achievement sawmill = new Achievement("achievement.sawmill", "sawmill", -3, 1, MBlocks.sawmill,
(Achievement) minestrapp);
public static Achievement alloy = new Achievement("achievement.alloy", "alloy", -1, 4, MBlocks.alloy,
(Achievement) stonecutter);
public static Achievement melter = new Achievement("achievement.melter", "melter", -1, 6, MBlocks.melter,
(Achievement) alloy);
public static Achievement titanium = new Achievement("achievement.titanium", "titanium", -1, 8,
MItems.titanium_ingot, (Achievement) melter);
public static Achievement frost = new Achievement("achievement.frost", "frost", 2, -1,
MBlocks.dirt_permafrost, (Achievement) minestrapp);
public static Achievement glacieric_ice = new Achievement("achievement.glacieric_ice", "glacieric_ice", 4, -1,
MItems.glacieric_ice_shard, (Achievement) frost);
public static Achievement frost_gen = new Achievement("achievemnt.frost_gen", "frost_gen", 4, -3,
MBlocks.frost_generator, (Achievement) glacieric_ice);
public static Achievement bedrock = new Achievement("achievement.bedrock", "bedrock", -3, 8, Blocks.bedrock,
titanium).setSpecial();
public static Achievement sifter = new Achievement("achievement.sifter", "sifter", 1, 4, MItems.sifter,
(Achievement) alloy);
public static Achievement god = new Achievement("achievement.god", "god", -2, -1, MBlocks.godstone,
minestrapp).setSpecial();
public static Achievement jam = new Achievement("achievement.jam", "jam", 2, 2, MItems.jam_bottle,
(Achievement) minestrapp);
public static Achievement crusher = new Achievement("achievement.crusher", "crusher", 1, 8, MBlocks.crusher,
titanium).setSpecial();
public static Achievement icecream = new Achievement("achievement.icecream", "icecream", 1, 6,
MItems.ice_cream, (Achievement) crusher);
public static Achievement splitter = new Achievement("achievement.splitter", "splitter", 0, -3,
MBlocks.splitter_active, (Achievement) minestrapp);
public static Achievement diamond_dust = new Achievement("achievement.diamond_dust", "diamond_dust", 4, 8,
MItems.diamond_dust, (Achievement) crusher);
public static Achievement crystal_heart = new Achievement("achievement.crystal_heart", "crystal_heart", 4, 6,
MItems.crystal_heart, (Achievement) heart);
public static Achievement gene_block = new Achievement("achievement.gene_block", "gene_block", 6, 7,
MBlocks.block_cow, (Achievement) crystal_heart);
public static Achievement pink_sheep = new Achievement("achievement.pink_sheep", "pink_sheep", 6, 5,
MBlocks.block_sheep_pink, (Achievement) gene_block);
public static Achievement reflux = new Achievement("achievement.reflux", "reflux", -5, 0,
MItems.glowshroom_stew, (Achievement) minestrapp);
public static Achievement bonetrousle = new Achievement("achievement.bonetrousle", "bonetrousle", -6, -8,
MItems.spaghetti, null).setSpecial();
public static void load()
{
AchievementPage.registerAchievementPage(new AchievementPage("Minestrappolation", heart, stonecutter, sawmill,
alloy, melter, titanium, frost, glacieric_ice,
frost_gen, bedrock, minestrapp, reflux, sifter, god,
jam, crusher, icecream, splitter, diamond_dust,
crystal_heart, gene_block, pink_sheep, bonetrousle));
preInit();
}
public static void preInit()
{
heart.registerStat();
stonecutter.registerStat();
sawmill.registerStat();
crusher.registerStat();
alloy.registerStat();
melter.registerStat();
titanium.registerStat();
frost.registerStat();
glacieric_ice.registerStat();
frost_gen.registerStat();
bedrock.registerStat();
minestrapp.registerStat();
reflux.registerStat();
sifter.registerStat();
god.registerStat();
jam.registerStat();
icecream.registerStat();
splitter.registerStat();
diamond_dust.registerStat();
crystal_heart.registerStat();
gene_block.registerStat();
pink_sheep.registerStat();
bonetrousle.registerStat();
}
public static void addAchievement(EntityPlayer player, Achievement ach)
{
player.addStat(ach, 1);
}
}