Examples of PotionEffectType


Examples of org.bukkit.potion.PotionEffectType

  }

  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) {  }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.