Advertisement
riking

thaumcraft.api.EnumTag

Jan 30th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.42 KB | None | 0 0
  1. package thaumcraft.api;
  2.  
  3. import java.util.EnumSet;
  4. import java.util.HashMap;
  5. import java.util.Iterator;
  6. import java.util.Map;
  7.  
  8. public enum EnumTag
  9. {
  10.   UNKNOWN(63, "Obscurus", "Unknown, Obscured", 1, false, 2631720),
  11.  
  12.   WIND(0, "Aura", "Air, Wind, Breath", 1, false, 12632279),
  13.   MOTION(1, "Motus", "Motion, Movement, Speed", 1, false, 13487348),
  14.   VOID(2, "Vacuos", "Empty, Void, Insubstantial", 1, true, 12632279),
  15.   VISION(3, "Visum", "Sight, Vision, Appearance", 3, false, 14013676),
  16.   KNOWLEDGE(4, "Cognitio", "Learning, Knowledge, Inquiry", 1, false, 8421614),
  17.   FLIGHT(5, "Volito", "Flight, Leap", 1, false, 15198167),
  18.   FIRE(6, "Ignis", "Fire, Heat, Burn", 2, true, 16734721),
  19.   DESTRUCTION(7, "Fractus", "Destruction, Fragmented, Shattered", 2, true, 5267536),
  20.   LIGHT(8, "Lux", "Light, Brightness, Day", 2, false, 16774755),
  21.   POWER(9, "Potentia", "Power, Energy, Strength", 2, true, 12648447),
  22.   MECHANISM(10, "Machina", "Mechanism, Machine, Device", 2, false, 8421536),
  23.   ROCK(11, "Saxum", "Stone, Rock", 4, false, 6047810),
  24.   METAL(12, "Metallum", "Metal, Mine, Ore", 4, false, 14211288),
  25.  
  26.   EXCHANGE(14, "Permutatio", "Exchange, Change, Barter", 4, false, 5735255),
  27.   CLOTH(15, "Pannus", "Cloth, Fabric, Garment, Thread", 3, false, 15395522),
  28.   EARTH(16, "Solum", "Earth, Soil, Ground, Foundation", 4, false, 7421741),
  29.   ARMOR(17, "Tutamen", "Defense, Protection, Security", 4, false, 49344),
  30.   WEAPON(18, "Telum", "Arrow, Sword, Weapon", 2, true, 12603472),
  31.   TOOL(19, "Instrumentum", "Instrument, Tool, Implement", 4, false, 4210926),
  32.   CRYSTAL(20, "Vitreus", "Glass, Crystal, Gem, Transparent", 1, false, 8454143),
  33.   WATER(21, "Aqua", "Water, Fluid", 3, false, 3986684),
  34.   WEATHER(22, "Aer", "Weather, Mist, Climate", 3, false, 12648447),
  35.   COLD(23, "Gelum", "Cold, Ice, Frost", 3, true, 14811135),
  36.   SOUND(24, "Sonus", "Sound, Noise, Din", 3, false, 1100224),
  37.   HEAL(25, "Sano", "Heal, Repair, Make Sound", 3, false, 16744836),
  38.   LIFE(26, "Victus", "Life force, Food, Sustenance", 3, false, 14548997),
  39.   DEATH(27, "Mortuus", "Death, Decay, Undead", 6, true, 4210752),
  40.   TRAP(28, "Vinculum", "Bind, Imprison, Trap", 4, true, 10125440),
  41.   POISON(29, "Venenum", "Poison, Drug, Impure", 3, true, 9039872),
  42.   SPIRIT(30, "Animus", "Soul, Spirit", 1, false, 14737632),
  43.   VALUABLE(31, "Carus", "Expensive, Precious, Valuable", 4, false, 15121988),
  44.   WOOD(32, "Lignum", "Wood, Forest, Tree", 4, false, 360709),
  45.   FLOWER(33, "Flos", "Flower, Bloom, Blossom", 4, false, 16777024),
  46.   FUNGUS(34, "Fungus", "Mushroom, Toadstool, Fungi", 4, false, 16246215),
  47.   CROP(35, "Messis", "Crops, Harvest", 4, false, 14942080),
  48.   PLANT(36, "Herba", "Herb, Plant, Grass", 4, false, 109568),
  49.   PURE(37, "Purus", "Pure, Clean, Stainless", 3, false, 10878973),
  50.  
  51.   MAGIC(40, "Praecantatio", "Magic, Sorcery", 5, false, 9896128),
  52.  
  53.   CONTROL(48, "Imperito", "Control, Command, Dominate", 5, false, 10000715),
  54.   DARK(49, "Tenebris", "Dark, Night, Blindness", 5, true, 2434341),
  55.   CRAFT(50, "Fabrico", "Create, Construct, Work", 2, false, 8428928),
  56.  
  57.   BEAST(53, "Bestia", "Animal, Beast", 3, true, 10445833),
  58.   FLESH(54, "Corpus", "Body, Flesh, Physique", 3, false, 15615885),
  59.   INSECT(55, "Bestiola", "Spider, Web, Insects", 3, false, 8423552),
  60.   EVIL(56, "Malum", "Evil, The Nether, Malice", 5, true, 7340032),
  61.   FLUX(57, "Mutatio", "Flux, Chaos", 5, true, 12061625),
  62.   ELDRITCH(58, "Alienis", "Eldritch, The End, Strange, Alien", 5, true, 8409216);
  63.  
  64.   public final int id;
  65.   public final String name;
  66.   public final String meaning;
  67.   public final int element;
  68.   public final boolean aggro;
  69.   public final int color;
  70.   private static final Map lookup;
  71.  
  72.   private EnumTag(int id, String name, String meaning, int element, boolean aggro, int color)
  73.   {
  74.     this.id = id;
  75.     this.name = name;
  76.     this.meaning = meaning;
  77.     this.element = element;
  78.     this.color = color;
  79.     this.aggro = aggro;
  80.   }
  81.  
  82.   public int getId()
  83.   {
  84.     return this.id;
  85.   }
  86.   public static EnumTag get(int id) {
  87.     if ((lookup.get(Integer.valueOf(id)) == null) || (((EnumTag)lookup.get(Integer.valueOf(id))).element == 999)) {
  88.       return UNKNOWN;
  89.     }
  90.     return (EnumTag)lookup.get(Integer.valueOf(id));
  91.   }
  92.  
  93.   static
  94.   {
  95.     lookup = new HashMap();
  96.     EnumTag s;
  97.     for (Iterator i$ = EnumSet.allOf(EnumTag.class).iterator(); i$.hasNext(); lookup.put(Integer.valueOf(s.getId()), s)) s = (EnumTag)i$.next();
  98.   }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement