| 1 | package net.minecraft.stats;
|
| 2 |
|
| 3 | import com.google.common.collect.Lists;
|
| 4 | import java.util.List;
|
| 5 | import net.minecraft.init.Blocks;
|
| 6 | import net.minecraft.init.Items;
|
| 7 | import net.minecraft.item.ItemStack;
|
| 8 | import net.minecraft.util.JsonSerializableSet;
|
| 9 |
|
| 10 | public class AchievementList
|
| 11 | {
|
| 12 | /** Is the smallest column used to display a achievement on the GUI. */
|
| 13 | public static int minDisplayColumn;
|
| 14 |
|
| 15 | /** Is the smallest row used to display a achievement on the GUI. */
|
| 16 | public static int minDisplayRow;
|
| 17 |
|
| 18 | /** Is the biggest column used to display a achievement on the GUI. */
|
| 19 | public static int maxDisplayColumn;
|
| 20 |
|
| 21 | /** Is the biggest row used to display a achievement on the GUI. */
|
| 22 | public static int maxDisplayRow;
|
| 23 | public static List<Achievement> achievementList = Lists.<Achievement>newArrayList();
|
| 24 |
|
| 25 | /** Is the 'open inventory' achievement. */
|
| 26 | public static Achievement openInventory = (new Achievement("achievement.openInventory", "openInventory", 0, 0, Items.book, (Achievement)null)).initIndependentStat().registerStat();
|
| 27 |
|
| 28 | /** Is the 'getting wood' achievement. */
|
| 29 | public static Achievement mineWood = (new Achievement("achievement.mineWood", "mineWood", 2, 1, Blocks.log, openInventory)).registerStat();
|
| 30 |
|
| 31 | /** Is the 'benchmarking' achievement. */
|
| 32 | public static Achievement buildWorkBench = (new Achievement("achievement.buildWorkBench", "buildWorkBench", 4, -1, Blocks.crafting_table, mineWood)).registerStat();
|
| 33 |
|
| 34 | /** Is the 'time to mine' achievement. */
|
| 35 | public static Achievement buildPickaxe = (new Achievement("achievement.buildPickaxe", "buildPickaxe", 4, 2, Items.wooden_pickaxe, buildWorkBench)).registerStat();
|
| 36 |
|
| 37 | /** Is the 'hot topic' achievement. */
|
| 38 | public static Achievement buildFurnace = (new Achievement("achievement.buildFurnace", "buildFurnace", 3, 4, Blocks.furnace, buildPickaxe)).registerStat();
|
| 39 |
|
| 40 | /** Is the 'acquire hardware' achievement. */
|
| 41 | public static Achievement acquireIron = (new Achievement("achievement.acquireIron", "acquireIron", 1, 4, Items.iron_ingot, buildFurnace)).registerStat();
|
| 42 |
|
| 43 | /** Is the 'time to farm' achievement. */
|
| 44 | public static Achievement buildHoe = (new Achievement("achievement.buildHoe", "buildHoe", 2, -3, Items.wooden_hoe, buildWorkBench)).registerStat();
|
| 45 |
|
| 46 | /** Is the 'bake bread' achievement. */
|
| 47 | public static Achievement makeBread = (new Achievement("achievement.makeBread", "makeBread", -1, -3, Items.bread, buildHoe)).registerStat();
|
| 48 |
|
| 49 | /** Is the 'the lie' achievement. */
|
| 50 | public static Achievement bakeCake = (new Achievement("achievement.bakeCake", "bakeCake", 0, -5, Items.cake, buildHoe)).registerStat();
|
| 51 |
|
| 52 | /** Is the 'getting a upgrade' achievement. */
|
| 53 | public static Achievement buildBetterPickaxe = (new Achievement("achievement.buildBetterPickaxe", "buildBetterPickaxe", 6, 2, Items.stone_pickaxe, buildPickaxe)).registerStat();
|
| 54 |
|
| 55 | /** Is the 'delicious fish' achievement. */
|
| 56 | public static Achievement cookFish = (new Achievement("achievement.cookFish", "cookFish", 2, 6, Items.cooked_fish, buildFurnace)).registerStat();
|
| 57 |
|
| 58 | /** Is the 'on a rail' achievement */
|
| 59 | public static Achievement onARail = (new Achievement("achievement.onARail", "onARail", 2, 3, Blocks.rail, acquireIron)).setSpecial().registerStat();
|
| 60 |
|
| 61 | /** Is the 'time to strike' achievement. */
|
| 62 | public static Achievement buildSword = (new Achievement("achievement.buildSword", "buildSword", 6, -1, Items.wooden_sword, buildWorkBench)).registerStat();
|
| 63 |
|
| 64 | /** Is the 'monster hunter' achievement. */
|
| 65 | public static Achievement killEnemy = (new Achievement("achievement.killEnemy", "killEnemy", 8, -1, Items.bone, buildSword)).registerStat();
|
| 66 |
|
| 67 | /** is the 'cow tipper' achievement. */
|
| 68 | public static Achievement killCow = (new Achievement("achievement.killCow", "killCow", 7, -3, Items.leather, buildSword)).registerStat();
|
| 69 |
|
| 70 | /** Is the 'when pig fly' achievement. */
|
| 71 | public static Achievement flyPig = (new Achievement("achievement.flyPig", "flyPig", 9, -3, Items.saddle, killCow)).setSpecial().registerStat();
|
| 72 |
|
| 73 | /** The achievement for killing a Skeleton from 50 meters aways. */
|
| 74 | public static Achievement snipeSkeleton = (new Achievement("achievement.snipeSkeleton", "snipeSkeleton", 7, 0, Items.bow, killEnemy)).setSpecial().registerStat();
|
| 75 |
|
| 76 | /** Is the 'DIAMONDS!' achievement */
|
| 77 | public static Achievement diamonds = (new Achievement("achievement.diamonds", "diamonds", -1, 5, Blocks.diamond_ore, acquireIron)).registerStat();
|
| 78 | public static Achievement diamondsToYou = (new Achievement("achievement.diamondsToYou", "diamondsToYou", -1, 2, Items.diamond, diamonds)).registerStat();
|
| 79 |
|
| 80 | /** Is the 'We Need to Go Deeper' achievement */
|
| 81 | public static Achievement portal = (new Achievement("achievement.portal", "portal", -1, 7, Blocks.obsidian, diamonds)).registerStat();
|
| 82 |
|
| 83 | /** Is the 'Return to Sender' achievement */
|
| 84 | public static Achievement ghast = (new Achievement("achievement.ghast", "ghast", -4, 8, Items.ghast_tear, portal)).setSpecial().registerStat();
|
| 85 |
|
| 86 | /** Is the 'Into Fire' achievement */
|
| 87 | public static Achievement blazeRod = (new Achievement("achievement.blazeRod", "blazeRod", 0, 9, Items.blaze_rod, portal)).registerStat();
|
| 88 |
|
| 89 | /** Is the 'Local Brewery' achievement */
|
| 90 | public static Achievement potion = (new Achievement("achievement.potion", "potion", 2, 8, Items.potionitem, blazeRod)).registerStat();
|
| 91 |
|
| 92 | /** Is the 'The End?' achievement */
|
| 93 | public static Achievement theEnd = (new Achievement("achievement.theEnd", "theEnd", 3, 10, Items.ender_eye, blazeRod)).setSpecial().registerStat();
|
| 94 |
|
| 95 | /** Is the 'The End.' achievement */
|
| 96 | public static Achievement theEnd2 = (new Achievement("achievement.theEnd2", "theEnd2", 4, 13, Blocks.dragon_egg, theEnd)).setSpecial().registerStat();
|
| 97 |
|
| 98 | /** Is the 'Enchanter' achievement */
|
| 99 | public static Achievement enchantments = (new Achievement("achievement.enchantments", "enchantments", -4, 4, Blocks.enchanting_table, diamonds)).registerStat();
|
| 100 | public static Achievement overkill = (new Achievement("achievement.overkill", "overkill", -4, 1, Items.diamond_sword, enchantments)).setSpecial().registerStat();
|
| 101 |
|
| 102 | /** Is the 'Librarian' achievement */
|
| 103 | public static Achievement bookcase = (new Achievement("achievement.bookcase", "bookcase", -3, 6, Blocks.bookshelf, enchantments)).registerStat();
|
| 104 |
|
| 105 | /** Is the 'Repopulation' achievement */
|
| 106 | public static Achievement breedCow = (new Achievement("achievement.breedCow", "breedCow", 7, -5, Items.wheat, killCow)).registerStat();
|
| 107 |
|
| 108 | /** Is the 'The Beginning?' achievement */
|
| 109 | public static Achievement spawnWither = (new Achievement("achievement.spawnWither", "spawnWither", 7, 12, new ItemStack(Items.skull, 1, 1), theEnd2)).registerStat();
|
| 110 |
|
| 111 | /** Is the 'The Beginning.' achievement */
|
| 112 | public static Achievement killWither = (new Achievement("achievement.killWither", "killWither", 7, 10, Items.nether_star, spawnWither)).registerStat();
|
| 113 |
|
| 114 | /** Is the 'Beaconator' achievement */
|
| 115 | public static Achievement fullBeacon = (new Achievement("achievement.fullBeacon", "fullBeacon", 7, 8, Blocks.beacon, killWither)).setSpecial().registerStat();
|
| 116 |
|
| 117 | /** Is the 'Adventuring Time' achievement */
|
| 118 | public static Achievement exploreAllBiomes = (new Achievement("achievement.exploreAllBiomes", "exploreAllBiomes", 4, 8, Items.diamond_boots, theEnd)).func_150953_b(JsonSerializableSet.class).setSpecial().registerStat();
|
| 119 | public static Achievement overpowered = (new Achievement("achievement.overpowered", "overpowered", 6, 4, new ItemStack(Items.golden_apple, 1, 1), buildBetterPickaxe)).setSpecial().registerStat();
|
| 120 |
|
| 121 | /**
|
| 122 | * A stub functions called to make the static initializer for this class run.
|
| 123 | */
|
| 124 | public static void init()
|
| 125 | {
|
| 126 | }
|
| 127 | }
|
| 128 |
|