001 package net.minecraft.src; 002 003 import java.util.ArrayList; 004 import java.util.List; 005 006 public class AchievementList 007 { 008 /** Is the smallest column used to display a achievement on the GUI. */ 009 public static int minDisplayColumn; 010 011 /** Is the smallest row used to display a achievement on the GUI. */ 012 public static int minDisplayRow; 013 014 /** Is the biggest column used to display a achievement on the GUI. */ 015 public static int maxDisplayColumn; 016 017 /** Is the biggest row used to display a achievement on the GUI. */ 018 public static int maxDisplayRow; 019 020 /** Holds a list of all registered achievements. */ 021 public static List achievementList = new ArrayList(); 022 023 /** Is the 'open inventory' achievement. */ 024 public static Achievement openInventory = (new Achievement(0, "openInventory", 0, 0, Item.book, (Achievement)null)).setIndependent().registerAchievement(); 025 026 /** Is the 'getting wood' achievement. */ 027 public static Achievement mineWood = (new Achievement(1, "mineWood", 2, 1, Block.wood, openInventory)).registerAchievement(); 028 029 /** Is the 'benchmarking' achievement. */ 030 public static Achievement buildWorkBench = (new Achievement(2, "buildWorkBench", 4, -1, Block.workbench, mineWood)).registerAchievement(); 031 032 /** Is the 'time to mine' achievement. */ 033 public static Achievement buildPickaxe = (new Achievement(3, "buildPickaxe", 4, 2, Item.pickaxeWood, buildWorkBench)).registerAchievement(); 034 035 /** Is the 'hot topic' achievement. */ 036 public static Achievement buildFurnace = (new Achievement(4, "buildFurnace", 3, 4, Block.stoneOvenActive, buildPickaxe)).registerAchievement(); 037 038 /** Is the 'acquire hardware' achievement. */ 039 public static Achievement acquireIron = (new Achievement(5, "acquireIron", 1, 4, Item.ingotIron, buildFurnace)).registerAchievement(); 040 041 /** Is the 'time to farm' achievement. */ 042 public static Achievement buildHoe = (new Achievement(6, "buildHoe", 2, -3, Item.hoeWood, buildWorkBench)).registerAchievement(); 043 044 /** Is the 'bake bread' achievement. */ 045 public static Achievement makeBread = (new Achievement(7, "makeBread", -1, -3, Item.bread, buildHoe)).registerAchievement(); 046 047 /** Is the 'the lie' achievement. */ 048 public static Achievement bakeCake = (new Achievement(8, "bakeCake", 0, -5, Item.cake, buildHoe)).registerAchievement(); 049 050 /** Is the 'getting a upgrade' achievement. */ 051 public static Achievement buildBetterPickaxe = (new Achievement(9, "buildBetterPickaxe", 6, 2, Item.pickaxeStone, buildPickaxe)).registerAchievement(); 052 053 /** Is the 'delicious fish' achievement. */ 054 public static Achievement cookFish = (new Achievement(10, "cookFish", 2, 6, Item.fishCooked, buildFurnace)).registerAchievement(); 055 056 /** Is the 'on a rail' achievement */ 057 public static Achievement onARail = (new Achievement(11, "onARail", 2, 3, Block.rail, acquireIron)).setSpecial().registerAchievement(); 058 059 /** Is the 'time to strike' achievement. */ 060 public static Achievement buildSword = (new Achievement(12, "buildSword", 6, -1, Item.swordWood, buildWorkBench)).registerAchievement(); 061 062 /** Is the 'monster hunter' achievement. */ 063 public static Achievement killEnemy = (new Achievement(13, "killEnemy", 8, -1, Item.bone, buildSword)).registerAchievement(); 064 065 /** is the 'cow tipper' achievement. */ 066 public static Achievement killCow = (new Achievement(14, "killCow", 7, -3, Item.leather, buildSword)).registerAchievement(); 067 068 /** Is the 'when pig fly' achievement. */ 069 public static Achievement flyPig = (new Achievement(15, "flyPig", 8, -4, Item.saddle, killCow)).setSpecial().registerAchievement(); 070 071 /** The achievement for killing a Skeleton from 50 meters aways. */ 072 public static Achievement snipeSkeleton = (new Achievement(16, "snipeSkeleton", 7, 0, Item.bow, killEnemy)).setSpecial().registerAchievement(); 073 074 /** Is the 'DIAMONDS!' achievement */ 075 public static Achievement diamonds = (new Achievement(17, "diamonds", -1, 5, Item.diamond, acquireIron)).registerAchievement(); 076 077 /** Is the 'We Need to Go Deeper' achievement */ 078 public static Achievement portal = (new Achievement(18, "portal", -1, 7, Block.obsidian, diamonds)).registerAchievement(); 079 080 /** Is the 'Return to Sender' achievement */ 081 public static Achievement ghast = (new Achievement(19, "ghast", -4, 8, Item.ghastTear, portal)).setSpecial().registerAchievement(); 082 083 /** Is the 'Into Fire' achievement */ 084 public static Achievement blazeRod = (new Achievement(20, "blazeRod", 0, 9, Item.blazeRod, portal)).registerAchievement(); 085 086 /** Is the 'Local Brewery' achievement */ 087 public static Achievement potion = (new Achievement(21, "potion", 2, 8, Item.potion, blazeRod)).registerAchievement(); 088 089 /** Is the 'The End?' achievement */ 090 public static Achievement theEnd = (new Achievement(22, "theEnd", 3, 10, Item.eyeOfEnder, blazeRod)).setSpecial().registerAchievement(); 091 092 /** Is the 'The End.' achievement */ 093 public static Achievement theEnd2 = (new Achievement(23, "theEnd2", 4, 13, Block.dragonEgg, theEnd)).setSpecial().registerAchievement(); 094 095 /** Is the 'Enchanter' achievement */ 096 public static Achievement enchantments = (new Achievement(24, "enchantments", -4, 4, Block.enchantmentTable, diamonds)).registerAchievement(); 097 public static Achievement overkill = (new Achievement(25, "overkill", -4, 1, Item.swordDiamond, enchantments)).setSpecial().registerAchievement(); 098 099 /** Is the 'Librarian' achievement */ 100 public static Achievement bookcase = (new Achievement(26, "bookcase", -3, 6, Block.bookShelf, enchantments)).registerAchievement(); 101 102 /** 103 * A stub functions called to make the static initializer for this class run. 104 */ 105 public static void init() {} 106 107 static 108 { 109 System.out.println(achievementList.size() + " achievements"); 110 } 111 }