mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
SPIGOT-5121: Method to set PierceLevel of arrows
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user