mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +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
@ -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…
Reference in New Issue
Block a user