mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Add API to get / set base arrow damage
By: md_5 <git@md-5.net>
This commit is contained in:
parent
00b0722888
commit
e8f711959a
1 changed files with 18 additions and 0 deletions
|
@ -23,6 +23,24 @@ public interface Arrow extends Projectile {
|
||||||
*/
|
*/
|
||||||
public void setKnockbackStrength(int knockbackStrength);
|
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.
|
* Gets whether this arrow is critical.
|
||||||
* <p>
|
* <p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue