Examples of toDamageValue()


Examples of org.bukkit.potion.Potion.toDamageValue()

 
  public static short guessData(final ThrownPotion p) {
    if (p.getEffects().size() == 1) {
      final PotionEffect e = p.getEffects().iterator().next();
      final Potion d = new Potion(PotionType.getByEffect(e.getType())).splash();
      return d.toDamageValue();
    }
    return 0;
  }
}
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.