}
String after = element.getAttribute("after");
String saveAs = element.getAttribute("saveas");
Boolean client = element.getAttribute("client").equalsIgnoreCase("yes");
Boolean server = element.getAttribute("server").equalsIgnoreCase("yes");
Action thing = null;
if (element.hasAttribute("type")) {
thing = new Action(action, type, after, saveAs, client, server);
} else {
thing = new Action(action, after, saveAs, client, server);
}
for (String modd : mod.split(",")) {
if (isModByName(modd)) {
thing.addMod(getModByName(modd));
}
}
actions.add(thing);
}
}