Class[] classes = c.getDeclaredClasses();
for (Class a : classes) {
Annotation[] annos = a.getDeclaredAnnotations();
for (Annotation b : annos) {
if (b instanceof Tunable) {
Tunable t = (Tunable) b;
String cat = t.category();
Field[] g = a.getDeclaredFields();
for (Field h : g) {
if (config1 != null) {
Property p;
if (t.category().contains("items")) {
p = config1.getItem(cat, h.getName(), Integer.valueOf(denLib.ReflectionHelper.getStaticField(h).toString()));
} else {
p = config1.get(cat, h.getName(), denLib.ReflectionHelper.getStaticField(h).toString());
}
denLib.ReflectionHelper.setStaticField(h, p.getString());
ConfigCategory a123 = config1.getCategory(cat);
if (!t.comment().equals("Tunable Values")) {
a123.setComment(t.comment());
}
Annotation[] fAnno = h.getDeclaredAnnotations();
for (Annotation q : fAnno) {
if (q instanceof Comment) {
Comment comment = (Comment) q;