Add API to get / set base arrow damage

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-12-26 08:00:00 +11:00
parent 00b0722888
commit e8f711959a

View File

@ -23,6 +23,24 @@ public interface Arrow extends Projectile {
*/
public void setKnockbackStrength(int knockbackStrength);
/**
* Gets the base amount of damage this arrow will do.
*
* Defaults to 2.0 for a normal arrow with
* <code>0.5 * (1 + power level)</code> added for arrows fired from
* enchanted bows.
*
* @return base damage amount
*/
public double getDamage();
/**
* Sets the base amount of damage this arrow will do.
*
* @param damage new damage amount
*/
public void setDamage(double damage);
/**
* Gets whether this arrow is critical.
* <p>