mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
@@ -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>
|
||||||
|
Reference in New Issue
Block a user