mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add API to get / set base arrow damage
This commit is contained in:
parent
0969eedc88
commit
995e530fb1
1 changed files with 18 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue