mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-21 15:54:45 +01:00
SPIGOT-5121: Method to set PierceLevel of arrows
By: md_5 <git@md-5.net>
This commit is contained in:
parent
6a48681da7
commit
29b0bdf48b
1 changed files with 16 additions and 0 deletions
|
@ -43,6 +43,22 @@ public interface AbstractArrow extends Projectile {
|
|||
*/
|
||||
public void setDamage(double damage);
|
||||
|
||||
/**
|
||||
* Gets the number of times this arrow can pierce through an entity.
|
||||
*
|
||||
* @return pierce level
|
||||
*/
|
||||
public int getPierceLevel();
|
||||
|
||||
/**
|
||||
* Sets the number of times this arrow can pierce through an entity.
|
||||
*
|
||||
* Must be between 0 and 127 times.
|
||||
*
|
||||
* @param pierceLevel new pierce level
|
||||
*/
|
||||
public void setPierceLevel(int pierceLevel);
|
||||
|
||||
/**
|
||||
* Gets whether this arrow is critical.
|
||||
* <p>
|
||||
|
|
Loading…
Add table
Reference in a new issue