}
public static PotionEffect parsePotionEffect(Element element)
{
assert "effect".equalsIgnoreCase(element.getName());
PotionEffectType type = getPotionEffectType(element.getAttributeValue("type"));
int duration = -1, amplifier = 0;
try { duration = Integer.parseInt(element.getAttributeValue("duration")) * 20; }
catch (NumberFormatException e) { }