I just have to write "for (int i = 0; i < 96; i++)" and a generic Folder Path (which also contains said Constant above) to put the Icons into a Array.
Why not have a mapping during start up that maps names to numbers? Yeah, it's a bit of extra work but would be needed just once per texture and would have no overhead during run time.
Only overhead would be the development time to implement it. Benefit would be less-whiny texture pack creators