2013-10-18 23:57:56 +00:00
|
|
|
package biomesoplenty.configuration;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2013-07-05 03:19:54 +00:00
|
|
|
import net.minecraft.client.Minecraft;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraft.item.Item;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.stats.Achievement;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraft.util.MathHelper;
|
|
|
|
import net.minecraft.world.World;
|
2013-07-04 22:45:11 +00:00
|
|
|
import net.minecraft.world.biome.BiomeGenBase;
|
2013-05-03 13:00:44 +00:00
|
|
|
import net.minecraftforge.common.AchievementPage;
|
|
|
|
import net.minecraftforge.event.ForgeSubscribe;
|
2013-07-03 12:26:06 +00:00
|
|
|
import net.minecraftforge.event.entity.EntityEvent;
|
|
|
|
import biomesoplenty.api.Biomes;
|
2013-05-03 13:00:44 +00:00
|
|
|
import biomesoplenty.api.Blocks;
|
2013-07-09 04:10:57 +00:00
|
|
|
import biomesoplenty.api.Fluids;
|
2013-07-19 22:42:53 +00:00
|
|
|
import biomesoplenty.api.Items;
|
2013-09-14 10:16:39 +00:00
|
|
|
import biomesoplenty.configuration.configfile.BOPConfigurationMisc;
|
2013-05-03 13:00:44 +00:00
|
|
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
public class BOPAchievements
|
2013-05-03 13:00:44 +00:00
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
// Achievement declaration
|
2013-06-23 10:10:00 +00:00
|
|
|
public static Achievement achBOP;
|
2013-06-25 23:11:07 +00:00
|
|
|
public static Achievement achAllBiomes;
|
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
public static Achievement achAlps;
|
|
|
|
public static Achievement achArctic;
|
2013-06-25 23:11:07 +00:00
|
|
|
public static Achievement achBadlands;
|
|
|
|
public static Achievement achBambooForest;
|
|
|
|
public static Achievement achBayou;
|
|
|
|
public static Achievement achBirchForest;
|
|
|
|
public static Achievement achBog;
|
|
|
|
public static Achievement achBorealForest;
|
|
|
|
public static Achievement achBrushland;
|
|
|
|
public static Achievement achCanyon;
|
|
|
|
public static Achievement achChaparral;
|
|
|
|
public static Achievement achCherryBlossom;
|
2013-07-03 12:26:06 +00:00
|
|
|
public static Achievement achConiferousForest;
|
|
|
|
public static Achievement achConiferousForestSnow;
|
|
|
|
public static Achievement achCrag;
|
|
|
|
public static Achievement achDeadForest;
|
|
|
|
public static Achievement achDeadForestSnow;
|
|
|
|
public static Achievement achDeadSwamp;
|
|
|
|
public static Achievement achDeadlands;
|
|
|
|
public static Achievement achDeciduousForest;
|
|
|
|
public static Achievement achDunes;
|
|
|
|
public static Achievement achFen;
|
|
|
|
public static Achievement achField;
|
|
|
|
public static Achievement achFrostForest;
|
|
|
|
public static Achievement achFungiForest;
|
|
|
|
public static Achievement achGarden;
|
|
|
|
public static Achievement achGlacier;
|
|
|
|
public static Achievement achGrassland;
|
|
|
|
public static Achievement achGrove;
|
|
|
|
public static Achievement achHeathland;
|
|
|
|
public static Achievement achHighland;
|
|
|
|
public static Achievement achHotSprings;
|
|
|
|
public static Achievement achIcyHills;
|
|
|
|
public static Achievement achJadeCliffs;
|
|
|
|
public static Achievement achLushDesert;
|
|
|
|
public static Achievement achLushSwamp;
|
|
|
|
public static Achievement achMangrove;
|
|
|
|
public static Achievement achMapleWoods;
|
|
|
|
public static Achievement achMarsh;
|
|
|
|
public static Achievement achMeadow;
|
|
|
|
public static Achievement achMesa;
|
|
|
|
public static Achievement achMoor;
|
|
|
|
public static Achievement achMountain;
|
|
|
|
public static Achievement achMysticGrove;
|
2013-07-03 22:15:43 +00:00
|
|
|
public static Achievement achOasis;
|
|
|
|
public static Achievement achOminousWoods;
|
|
|
|
public static Achievement achOrchard;
|
|
|
|
public static Achievement achOriginValley;
|
|
|
|
public static Achievement achOutback;
|
2013-08-12 20:55:28 +00:00
|
|
|
public static Achievement achOvergrownGreens;
|
2013-07-03 22:15:43 +00:00
|
|
|
public static Achievement achPasture;
|
|
|
|
public static Achievement achPolar;
|
|
|
|
public static Achievement achPrairie;
|
|
|
|
public static Achievement achQuagmire;
|
|
|
|
public static Achievement achRainforest;
|
|
|
|
public static Achievement achRedwoodForest;
|
|
|
|
public static Achievement achSacredSprings;
|
|
|
|
public static Achievement achSavanna;
|
|
|
|
public static Achievement achScrubland;
|
|
|
|
public static Achievement achSeasonalForest;
|
2013-07-04 22:45:11 +00:00
|
|
|
|
|
|
|
public static Achievement achShield;
|
|
|
|
public static Achievement achShrubland;
|
2013-08-09 21:57:27 +00:00
|
|
|
public static Achievement achSilkglades;
|
2013-07-04 22:45:11 +00:00
|
|
|
public static Achievement achSludgepit;
|
|
|
|
public static Achievement achSpruceWoods;
|
|
|
|
public static Achievement achSteppe;
|
|
|
|
public static Achievement achTemperateRainforest;
|
|
|
|
public static Achievement achThicket;
|
|
|
|
public static Achievement achTimber;
|
|
|
|
public static Achievement achTropicalRainforest;
|
|
|
|
public static Achievement achTropics;
|
|
|
|
public static Achievement achTundra;
|
|
|
|
public static Achievement achVolcano;
|
|
|
|
public static Achievement achWasteland;
|
|
|
|
public static Achievement achWetland;
|
|
|
|
public static Achievement achWoodland;
|
|
|
|
|
|
|
|
public static Achievement achDesert;
|
|
|
|
public static Achievement achExtremeHills;
|
|
|
|
public static Achievement achForest;
|
|
|
|
public static Achievement achIcePlains;
|
|
|
|
public static Achievement achJungle;
|
|
|
|
public static Achievement achMushroomIsland;
|
|
|
|
public static Achievement achPlains;
|
|
|
|
public static Achievement achSwampland;
|
|
|
|
public static Achievement achTaiga;
|
2013-08-06 22:16:08 +00:00
|
|
|
|
|
|
|
public static Achievement achPromised;
|
|
|
|
public static Achievement achSacrifice;
|
2013-05-31 10:34:02 +00:00
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
public static AchievementPage pageBiome;
|
2013-07-05 01:20:48 +00:00
|
|
|
|
2013-07-05 03:19:54 +00:00
|
|
|
static Achievement[] biomeFinderAchievementList;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public static void init()
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
achBOP = (new Achievement(3080, "bop.achBOP", -10, -6, new ItemStack(Items.food.get(), 1, 7), null)).registerAchievement().setSpecial();
|
|
|
|
achAlps = (new Achievement(3082, "bop.achAlps", -8, -6, new ItemStack(Block.stone, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achArctic = (new Achievement(3083, "bop.achArctic", -6, -6, new ItemStack(Block.blockSnow, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achBadlands = (new Achievement(3084, "bop.achBadlands", -4, -6, new ItemStack(Block.hardenedClay, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achBambooForest = (new Achievement(3085, "bop.achBambooForest", -2, -6, new ItemStack(Blocks.saplings.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achBayou = (new Achievement(3086, "bop.achBayou", 0, -6, new ItemStack(Blocks.willow.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achBirchForest = (new Achievement(3087, "bop.achBirchForest", 2, -6, new ItemStack(Block.sapling, 1, 2), achBOP)).registerAchievement();
|
|
|
|
achBog = (new Achievement(3088, "bop.achBog", 4, -6, new ItemStack(Blocks.mushrooms.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achBorealForest = (new Achievement(3089, "bop.achBorealForest", 6, -6, new ItemStack(Blocks.saplings.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achBrushland = (new Achievement(3090, "bop.achBrushland", 8, -6, new ItemStack(Block.leaves, 1, 2), achBOP)).registerAchievement();
|
|
|
|
achCanyon = (new Achievement(3091, "bop.achCanyon", 10, -6, new ItemStack(Blocks.hardDirt.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achChaparral = (new Achievement(3092, "bop.achChaparral", -10, -4, new ItemStack(Blocks.foliage.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achCherryBlossom = (new Achievement(3093, "bop.achCherryBlossom", -8, -4, new ItemStack(Blocks.saplings.get(), 1, 10), achBOP)).registerAchievement();
|
|
|
|
achConiferousForest = (new Achievement(3094, "bop.achConiferousForest", -6, -4, new ItemStack(Blocks.saplings.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achConiferousForestSnow = (new Achievement(3096, "bop.achConiferousForestSnow", -4, -4, new ItemStack(Blocks.saplings.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achCrag = (new Achievement(3097, "bop.achCrag", -2, -4, new ItemStack(Blocks.cragRock.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achDeadForest = (new Achievement(3098, "bop.achDeadForest", 0, -4, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achDeadForestSnow = (new Achievement(3099, "bop.achDeadForestSnow", 2, -4, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achDeadSwamp = (new Achievement(3100, "bop.achDeadSwamp", 4, -4, new ItemStack(Blocks.logs3.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achDeadlands = (new Achievement(3101, "bop.achDeadlands", 6, -4, new ItemStack(Blocks.holyGrass.get(), 1, 1), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achDeciduousForest = (new Achievement(3102, "bop.achDeciduousForest", 8, -4, new ItemStack(Blocks.foliage.get(), 1, 7), achBOP)).registerAchievement();
|
|
|
|
achDunes = (new Achievement(3103, "bop.achDunes", 10, -4, new ItemStack(Blocks.plants.get(), 1, 3), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achFen = (new Achievement(3104, "bop.achFen", -10, -2, new ItemStack(Blocks.plants.get(), 1, 8), achBOP)).registerAchievement();
|
|
|
|
achField = (new Achievement(3105, "bop.achField", -8, -2, new ItemStack(Block.tallGrass, 1, 1), achBOP)).registerAchievement();
|
|
|
|
achFrostForest = (new Achievement(3106, "bop.achFrostForest", -6, -2, new ItemStack(Blocks.flowers2.get(), 1, 7), achBOP)).registerAchievement();
|
|
|
|
achFungiForest = (new Achievement(3107, "bop.achFungiForest", -4, -2, new ItemStack(Blocks.mushrooms.get(), 1, 3), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achGarden = (new Achievement(3108, "bop.achGarden", -2, -2, new ItemStack(Block.plantRed, 1, 1), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achGlacier = (new Achievement(3109, "bop.achGlacier", 0, -2, new ItemStack(Blocks.hardIce.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achGrassland = (new Achievement(3110, "bop.achGrassland", 2, -2, new ItemStack(Block.grass, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achGrove = (new Achievement(3111, "bop.achGrove", 4, -2, new ItemStack(Blocks.flowers.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achHeathland = (new Achievement(3112, "bop.achHeathland", 6, -2, new ItemStack(Blocks.saplings.get(), 1, 14), achBOP)).registerAchievement();
|
|
|
|
achHighland = (new Achievement(3113, "bop.achHighland", 8, -2, new ItemStack(Blocks.foliage.get(), 1, 3), achBOP)).registerAchievement();
|
|
|
|
achHotSprings = (new Achievement(3114, "bop.achHotSprings", 10, -2, new ItemStack(Fluids.bopBucket.get(), 1, 2), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achIcyHills = (new Achievement(3115, "bop.achIcyHills", -10, 0, new ItemStack(Block.ice, 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achJadeCliffs = (new Achievement(3116, "bop.achJadeCliffs", -8, 0, new ItemStack(Blocks.colorizedSaplings.get(), 1, 5), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achLushDesert = (new Achievement(3117, "bop.achLushDesert", -6, 0, new ItemStack(Blocks.plants.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achLushSwamp = (new Achievement(3118, "bop.achLushSwamp", -4, 0, new ItemStack(Blocks.ivy.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achMangrove = (new Achievement(3119, "bop.achMangrove", -2, 0, new ItemStack(Blocks.colorizedSaplings.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achMapleWoods = (new Achievement(3120, "bop.achMapleWoods", 0, 0, new ItemStack(Blocks.saplings.get(), 1, 11), achBOP)).registerAchievement();
|
|
|
|
achMarsh = (new Achievement(3121, "bop.achMarsh", 2, 0, new ItemStack(Blocks.plants.get(), 1, 14), achBOP)).registerAchievement();
|
|
|
|
achMeadow = (new Achievement(3122, "bop.achMeadow", 4, 0, new ItemStack(Blocks.flowers.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achMesa = (new Achievement(3123, "bop.achMesa", 6, 0, new ItemStack(Blocks.redRock.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achMoor = (new Achievement(3124, "bop.achMoor", 8, 0, new ItemStack(Blocks.flowers.get(), 1, 1), achBOP)).registerAchievement();
|
|
|
|
achMountain = (new Achievement(3125, "bop.achMountain", 10, 0, new ItemStack(Blocks.foliage.get(), 1, 8), achBOP)).registerAchievement();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achMysticGrove = (new Achievement(3126, "bop.achMysticGrove", -10, 2, new ItemStack(Blocks.flowers.get(), 1, 3), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achOasis = (new Achievement(3127, "bop.achOasis", -8, 2, new ItemStack(Blocks.plants.get(), 1, 12), achBOP)).registerAchievement();
|
|
|
|
achOminousWoods = (new Achievement(3128, "bop.achOminousWoods", -6, 2, new ItemStack(Blocks.flowers.get(), 1, 2), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achOrchard = (new Achievement(3129, "bop.achOrchard", -4, 2, new ItemStack(Blocks.saplings.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achOriginValley = (new Achievement(3130, "bop.achOriginValley", -2, 2, new ItemStack(Blocks.originGrass.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achOutback = (new Achievement(3131, "bop.achOutback", -0, 2, new ItemStack(Blocks.hardSand.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achOvergrownGreens = (new Achievement(3132, "bop.achOvergrownGreens", 2, 2, new ItemStack(Blocks.foliage.get(), 1, 3), achBOP)).registerAchievement();
|
|
|
|
achPasture = (new Achievement(3133, "bop.achPasture", 4, 2, new ItemStack(Blocks.plants.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achPolar = (new Achievement(3134, "bop.achPolar", 6, 2, new ItemStack(Block.ice, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achPrairie = (new Achievement(3135, "bop.achPrairie", 8, 2, new ItemStack(Blocks.flowers2.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achQuagmire = (new Achievement(3136, "bop.achQuagmire", 10, 2, new ItemStack(Items.mudball.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
|
|
|
|
achRainforest = (new Achievement(3137, "bop.achRainforest", -10, 4, new ItemStack(Blocks.flowers.get(), 1, 6), achBOP)).registerAchievement();
|
|
|
|
achRedwoodForest = (new Achievement(3138, "bop.achRedwoodForest", -8, 4, new ItemStack(Blocks.colorizedSaplings.get(), 1, 3), achBOP)).registerAchievement();
|
2013-10-21 17:02:22 +00:00
|
|
|
achSacredSprings = (new Achievement(3139, "bop.achSacredSprings", -6, 4, new ItemStack(Blocks.colorizedSaplings.get(), 1, 6), achBOP)).registerAchievement().setSpecial();
|
2013-10-18 23:57:56 +00:00
|
|
|
achSavanna = (new Achievement(3140, "bop.achSavanna", -4, 4, new ItemStack(Blocks.colorizedSaplings.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achScrubland = (new Achievement(3141, "bop.achScrubland", -2, 4, new ItemStack(Block.tallGrass, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achSeasonalForest = (new Achievement(3142, "bop.achSeasonalForest", 0, 4, new ItemStack(Blocks.saplings.get(), 1, 8), achBOP)).registerAchievement();
|
|
|
|
achShield = (new Achievement(3143, "bop.achShield", 2, 4, new ItemStack(Blocks.moss.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achShrubland = (new Achievement(3144, "bop.achShrubland", 4, 4, new ItemStack(Blocks.foliage.get(), 1, 9), achBOP)).registerAchievement();
|
|
|
|
achSilkglades = (new Achievement(3145, "bop.achSilkglades", 6, 4, new ItemStack(Block.web, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achSludgepit = (new Achievement(3146, "bop.achSludgepit", 8, 4, new ItemStack(Blocks.foliage.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achSpruceWoods = (new Achievement(3147, "bop.achSpruceWoods", 10, 4, new ItemStack(Blocks.flowers2.get(), 1, 5), achBOP)).registerAchievement();
|
2013-07-04 22:45:11 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achSteppe = (new Achievement(3148, "bop.achSteppe", -10, 6, new ItemStack(Blocks.flowers.get(), 1, 12), achBOP)).registerAchievement();
|
|
|
|
achTemperateRainforest = (new Achievement(3149, "bop.achTemperateRainforest", -8, 6, new ItemStack(Block.tallGrass, 1, 2), achBOP)).registerAchievement();
|
|
|
|
achThicket = (new Achievement(3150, "bop.achThicket", -6, 6, new ItemStack(Blocks.plants.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTimber = (new Achievement(3151, "bop.achTimber", -4, 6, new ItemStack(Blocks.saplings.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTropicalRainforest = (new Achievement(3152, "bop.achTropicalRainforest", -2, 6, new ItemStack(Blocks.flowers.get(), 1, 5), achBOP)).registerAchievement();
|
|
|
|
achTropics = (new Achievement(3153, "bop.achTropics", 0, 6, new ItemStack(Blocks.colorizedSaplings.get(), 1, 2), achBOP)).registerAchievement();
|
|
|
|
achTundra = (new Achievement(3154, "bop.achTundra", 2, 6, new ItemStack(Block.gravel, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achVolcano = (new Achievement(3155, "bop.achVolcano", 4, 6, new ItemStack(Blocks.ash.get(), 1, 0), achBOP)).registerAchievement();
|
|
|
|
achWasteland = (new Achievement(3156, "bop.achWasteland", 6, 6, new ItemStack(Blocks.driedDirt.get(), 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achWetland = (new Achievement(3157, "bop.achWetland", 8, 6, new ItemStack(Blocks.plants.get(), 1, 7), achBOP)).registerAchievement();
|
|
|
|
achWoodland = (new Achievement(3158, "bop.achWoodland", 10, 6, new ItemStack(Blocks.mushrooms.get(), 1, 0), achBOP)).registerAchievement();
|
2013-07-04 22:45:11 +00:00
|
|
|
|
2013-10-18 23:57:56 +00:00
|
|
|
achDesert = (new Achievement(3159, "bop.achDesert", -10, 8, new ItemStack(Block.sand, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achExtremeHills = (new Achievement(3160, "bop.achExtremeHills", -8, 8, new ItemStack(Blocks.flowers.get(), 1, 8), achBOP)).registerAchievement();
|
|
|
|
achForest = (new Achievement(3161, "bop.achForest", -6, 8, new ItemStack(Block.sapling, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achIcePlains = (new Achievement(3162, "bop.achIcePlains", -4, 8, new ItemStack(Block.blockSnow, 1, 0), achBOP)).registerAchievement();
|
|
|
|
achJungle = (new Achievement(3163, "bop.achJungle", -2, 8, new ItemStack(Block.sapling, 1, 3), achBOP)).registerAchievement();
|
|
|
|
achMushroomIsland = (new Achievement(3164, "bop.achMushroomIsland", 0, 8, new ItemStack(Block.mushroomRed, 1, 0), achBOP)).registerAchievement().setSpecial();
|
|
|
|
achPlains = (new Achievement(3165, "bop.achPlains",2, 8, new ItemStack(Blocks.flowers.get(), 1, 13), achBOP)).registerAchievement();
|
|
|
|
achSwampland = (new Achievement(3166, "bop.achSwampland", 4, 8, new ItemStack(Blocks.colorizedSaplings.get(), 1, 4), achBOP)).registerAchievement();
|
|
|
|
achTaiga = (new Achievement(3167, "bop.achTaiga", 6, 8, new ItemStack(Block.sapling, 1, 1), achBOP)).registerAchievement();
|
|
|
|
achAllBiomes = (new Achievement(3081, "bop.achAllBiomes", 8, 8, new ItemStack(Items.food.get(), 1, 7), null)).registerAchievement().setSpecial();
|
|
|
|
achPromised = (new Achievement(3168, "bop.achPromised", 10, 8, new ItemStack(Blocks.holyGrass.get(), 1, 0), null)).registerAchievement().setSpecial();
|
|
|
|
achSacrifice = (new Achievement(3169, "bop.achSacrifice", 0, 10, new ItemStack(Items.miscItems.get(), 1, 16), null)).registerAchievement().setSpecial();
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 03:19:54 +00:00
|
|
|
biomeFinderAchievementList = new Achievement[] { achBOP, achAlps, achArctic, achBadlands, achBambooForest, achBayou, achBirchForest, achBog, achBorealForest, achBrushland, achCanyon, achChaparral, achCherryBlossom, achConiferousForest,
|
|
|
|
achConiferousForestSnow, achCrag, achDeadForest, achDeadForestSnow, achDeadSwamp, achDeadlands, achDeciduousForest, achDunes, achFen, achField, achFrostForest, achFungiForest, achGarden, achGlacier, achGrassland, achGrove, achHeathland, achHighland, achHotSprings, achIcyHills,
|
2013-08-12 20:55:28 +00:00
|
|
|
achJadeCliffs, achLushDesert, achLushSwamp, achMangrove, achMapleWoods, achMarsh, achMeadow, achMesa, achMoor, achMountain, achMysticGrove, achOasis, achOminousWoods, achOrchard, achOriginValley, achOutback, achOvergrownGreens, achPasture, achPolar, achPrairie, achQuagmire, achRainforest, achRedwoodForest, achSacredSprings,
|
2013-08-09 21:57:27 +00:00
|
|
|
achSavanna, achScrubland, achSeasonalForest, achShield, achShrubland, achSilkglades, achSludgepit, achSpruceWoods, achSteppe, achTemperateRainforest, achThicket, achTimber, achTropicalRainforest, achTropics, achTundra, achVolcano, achWasteland, achWetland, achWoodland, achDesert, achExtremeHills, achForest, achIcePlains,
|
2013-08-06 22:16:08 +00:00
|
|
|
achJungle, achMushroomIsland, achPlains, achSwampland, achTaiga, achAllBiomes, achPromised, achSacrifice};
|
2013-07-05 03:19:54 +00:00
|
|
|
|
2013-08-06 22:16:08 +00:00
|
|
|
pageBiome = new AchievementPage("Biomes O\' Plenty", biomeFinderAchievementList);
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-06-23 09:19:48 +00:00
|
|
|
AchievementPage.registerAchievementPage(pageBiome);
|
2013-05-31 10:34:02 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
|
|
|
@ForgeSubscribe
|
|
|
|
public void chunkEntered(EntityEvent.EnteringChunk event)
|
|
|
|
{
|
2013-09-14 10:16:39 +00:00
|
|
|
if (BOPConfigurationMisc.achievements)
|
2013-07-03 12:26:06 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (event.entity != null)
|
2013-07-03 12:26:06 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (event.entity instanceof EntityPlayer)
|
2013-07-05 03:19:54 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
EntityPlayer player = (EntityPlayer)event.entity;
|
|
|
|
World world = player.worldObj;
|
|
|
|
|
|
|
|
int x = MathHelper.floor_double(player.posX);
|
|
|
|
int y = MathHelper.floor_double(player.boundingBox.minY);
|
|
|
|
int z = MathHelper.floor_double(player.posZ);
|
|
|
|
|
|
|
|
int biomeID = world.getBiomeGenForCoords(x, z).biomeID;
|
|
|
|
int i = 0;
|
|
|
|
|
|
|
|
if (world.isRemote)
|
2013-07-05 03:19:54 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
while (Minecraft.getMinecraft().statFileWriter.hasAchievementUnlocked(biomeFinderAchievementList[i]))
|
2013-07-05 03:58:56 +00:00
|
|
|
{
|
2013-07-05 04:05:59 +00:00
|
|
|
if (i + 1 != biomeFinderAchievementList.length - 1)
|
|
|
|
{
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achAllBiomes, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
break;
|
|
|
|
}
|
2013-07-05 03:58:56 +00:00
|
|
|
}
|
2013-07-05 03:19:54 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.alps.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achAlps, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.alpsForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achAlps, 1);
|
2013-07-17 10:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.alpsBase.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achAlps, 1);
|
2013-07-17 10:00:16 +00:00
|
|
|
}
|
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.arctic.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achArctic, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.badlands.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBadlands, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bambooForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBambooForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bayou.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBayou, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.birchForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBirchForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.bog.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBog, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.borealForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBorealForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.brushland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achBrushland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.canyon.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achCanyon, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.canyonRavine.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achCanyon, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.chaparral.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achChaparral, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.cherryBlossomGrove.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achCherryBlossom, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.coniferousForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achConiferousForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
|
2013-07-05 04:05:59 +00:00
|
|
|
if (biomeID == Biomes.coniferousForestSnow.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achConiferousForestSnow, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.crag.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achCrag, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDeadForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadForestSnow.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDeadForestSnow, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadSwamp.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDeadSwamp, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deadlands.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDeadlands, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.deciduousForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDeciduousForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.dunes.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDunes, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.fen.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achFen, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.field.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achField, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-11-04 21:45:35 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.fieldForest.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(BOPAchievements.achField, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.frostForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achFrostForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.fungiForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achFungiForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.garden.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achGarden, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.glacier.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achGlacier, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.grassland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achGrassland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.grove.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achGrove, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.heathland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achHeathland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.highland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achHighland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.hotSprings.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achHotSprings, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.icyHills.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achIcyHills, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.jadeCliffs.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achJadeCliffs, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.lushDesert.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achLushDesert, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.lushSwamp.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achLushSwamp, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mangrove.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMangrove, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mapleWoods.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMapleWoods, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.marsh.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMarsh, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.meadow.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMeadow, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.meadowForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMeadow, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.mesa.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMesa, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.moor.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMoor, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.mountain.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMountain, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.mysticGrove.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMysticGrove, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-11-04 21:45:35 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.mysticGroveThin.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(BOPAchievements.achMysticGrove, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.oasis.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOasis, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.ominousWoods.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOminousWoods, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.ominousWoodsThick.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOminousWoods, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.orchard.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOrchard, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.originValley.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOriginValley, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.outback.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOutback, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-08-12 20:55:28 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.overgrownGreens.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achOvergrownGreens, 1);
|
2013-08-12 20:55:28 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.pasture.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPasture, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.pastureMeadow.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPasture, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.pastureThin.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPasture, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.polar.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPolar, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.prairie.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPrairie, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.quagmire.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achQuagmire, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.rainforest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achRainforest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.redwoodForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achRedwoodForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.sacredSprings.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSacredSprings, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.savanna.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSavanna, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-11-04 21:45:35 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.savannaPlateau.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(BOPAchievements.achSavanna, 1);
|
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.scrubland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achScrubland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.seasonalForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSeasonalForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-17 10:00:16 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.seasonalSpruceForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSeasonalForest, 1);
|
2013-07-17 10:00:16 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.shield.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achShield, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.shrubland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achShrubland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.shrublandForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achShrubland, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
2013-08-09 21:57:27 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.silkglades.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSilkglades, 1);
|
2013-08-09 21:57:27 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.sludgepit.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSludgepit, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.spruceWoods.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSpruceWoods, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.steppe.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSteppe, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.temperateRainforest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTemperateRainforest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.thicket.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achThicket, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.timber.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTimber, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 02:48:14 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.timberThin.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTimber, 1);
|
2013-07-09 02:48:14 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.tropicalRainforest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTropicalRainforest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.tropics.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTropics, 1);
|
2013-11-04 21:45:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.tropicsMountain.get().biomeID)
|
|
|
|
{
|
|
|
|
player.addStat(BOPAchievements.achTropics, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.tundra.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTundra, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.volcano.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achVolcano, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.wasteland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achWasteland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.wetland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achWetland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.woodland.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achWoodland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.desertNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDesert, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.desert.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDesert, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.desertHills.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achDesert, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.extremeHillsNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achExtremeHills, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.extremeHills.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achExtremeHills, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.extremeHillsEdge.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achExtremeHills, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.forestNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achForest, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.forestHillsNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achForest, 1);
|
2013-08-09 21:57:27 +00:00
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.forest.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achForest, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.forestHills.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achForest, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.icePlains.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achIcePlains, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.iceMountains.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achIcePlains, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.jungleNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achJungle, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.jungleHillsNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achJungle, 1);
|
2013-08-09 21:57:27 +00:00
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.jungle.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achJungle, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.jungleHills.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achJungle, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-07-05 04:05:59 +00:00
|
|
|
|
|
|
|
if (biomeID == BiomeGenBase.mushroomIsland.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achMushroomIsland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.plainsNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPlains, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.swamplandNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achSwampland, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.taigaNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTaiga, 1);
|
2013-07-05 04:05:59 +00:00
|
|
|
}
|
2013-07-09 17:47:47 +00:00
|
|
|
|
2013-08-09 21:57:27 +00:00
|
|
|
if (biomeID == Biomes.taigaHillsNew.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTaiga, 1);
|
2013-08-09 21:57:27 +00:00
|
|
|
}
|
|
|
|
|
2013-07-09 17:47:47 +00:00
|
|
|
if (biomeID == BiomeGenBase.taigaHills.biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achTaiga, 1);
|
2013-07-09 17:47:47 +00:00
|
|
|
}
|
2013-08-06 22:16:08 +00:00
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandForest.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPromised, 1);
|
2013-08-06 22:16:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandPlains.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPromised, 1);
|
2013-08-06 22:16:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (biomeID == Biomes.promisedLandSwamp.get().biomeID)
|
|
|
|
{
|
2013-10-18 23:57:56 +00:00
|
|
|
player.addStat(BOPAchievements.achPromised, 1);
|
2013-08-06 22:16:08 +00:00
|
|
|
}
|
2013-07-04 22:45:11 +00:00
|
|
|
}
|
2013-07-03 12:26:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
private static void addAchievementDesc(String ach, String name, String desc)
|
|
|
|
{
|
|
|
|
LanguageRegistry.instance().addStringLocalization("achievement." + ach, "en_US", name);
|
|
|
|
LanguageRegistry.instance().addStringLocalization("achievement." + ach + ".desc", "en_US", desc);
|
|
|
|
}
|
2013-07-17 09:42:06 +00:00
|
|
|
}
|