mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-26 19:09:44 -05:00
SPIGOT-5121: Method to set PierceLevel of arrows
By: md_5 <git@md-5.net>
This commit is contained in:
1 parent
6a48681da7
commit
29b0bdf48b
1 file changed
+16
@@ -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