Package org.bukkit.potion

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

Related Classes of org.bukkit.potion.PotionEffectType

Copyright © 2018 www.massapicom. 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.