mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add setCritical and isCritical methods to Arrow.java. Adds BUKKIT-5113
This commit is contained in:
parent
51eba0f1bd
commit
739f08b9b3
1 changed files with 19 additions and 0 deletions
|
@ -20,4 +20,23 @@ public interface Arrow extends Projectile {
|
||||||
* @param knockbackStrength the knockback strength value
|
* @param knockbackStrength the knockback strength value
|
||||||
*/
|
*/
|
||||||
public void setKnockbackStrength(int knockbackStrength);
|
public void setKnockbackStrength(int knockbackStrength);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets whether this arrow is critical.
|
||||||
|
* <p>
|
||||||
|
* Critical arrows have increased damage and cause particle effects.
|
||||||
|
* <p>
|
||||||
|
* Critical arrows generally occur when a player fully draws a bow before
|
||||||
|
* firing.
|
||||||
|
*
|
||||||
|
* @return true if it is critical
|
||||||
|
*/
|
||||||
|
public boolean isCritical();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether or not this arrow should be critical.
|
||||||
|
*
|
||||||
|
* @param critical whether or not it should be critical
|
||||||
|
*/
|
||||||
|
public void setCritical(boolean critical);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue