Skip to content

Commit

Permalink
Add setCritical and isCritical methods to Arrow.java. Adds BUKKIT-5113
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 authored and natemort committed Jan 31, 2014
1 parent 9510913 commit 0180483
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/org/bukkit/entity/Arrow.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 0180483

Please sign in to comment.