public static DamageType valueOf(int value) {
      switch (value) {
        case 0: return IndependentDamage;
        case 1: return Explosive;
        case 2: return Concussive;
        case 3: return Normal;
        case 4: return IgnoreArmor;
        case 5: return NoneDamage;
        case 6: return UnknownDamage;
        default: return null;
      }
    }