public static OreDictionaryEntry valueOf(int id){
  if (id < 0)   throw new IllegalArgumentException("ore dictionary IDs are not negative");
  while (oreDictionaryEntries.size() < id + 1) {
    oreDictionaryEntries.add(new OreDictionaryEntry(oreDictionaryEntries.size()));
  }
  return oreDictionaryEntries.get(id);
}

public static OreDictionaryEntry valueOf ( int id ) { if ( id < 0 ) throw new IllegalArgumentException ( "ore dictionary IDs are not negative" ) ; while ( oreDictionaryEntries . size ( ) < id + 1 ) { oreDictionaryEntries . add ( new OreDictionaryEntry ( oreDictionaryEntries . size ( ) ) ) ; } return oreDictionaryEntries . get ( id ) ; }
get an oredictionaryentry instance , using an instance cache to preserve reference equality .
