13
0
geforkt von Mirrors/Paper

Add setCritical and isCritical methods to Arrow.java. Adds BUKKIT-5113

By: MorphanOne <morphanone@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2014-01-21 22:33:49 -05:00
Ursprung 94f1e1e9de
Commit b3c27cf60d

Datei anzeigen

@ -20,4 +20,23 @@ public interface Arrow extends Projectile {
* @param knockbackStrength the knockback strength value
*/
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);
}