diff options
author | MorphanOne <morphanone@gmail.com> | 2014-01-21 22:33:49 -0500 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2014-01-30 21:58:48 -0700 |
commit | 739f08b9b3a1022c3774d4629a410fef6b53a9c0 (patch) | |
tree | 8046478720e9f75e29788305e5714d343adbf5bc | |
parent | 51eba0f1bd21f1019d1b072d90ca956a9243b6f7 (diff) | |
download | bukkit-739f08b9b3a1022c3774d4629a410fef6b53a9c0.tar bukkit-739f08b9b3a1022c3774d4629a410fef6b53a9c0.tar.gz bukkit-739f08b9b3a1022c3774d4629a410fef6b53a9c0.tar.lz bukkit-739f08b9b3a1022c3774d4629a410fef6b53a9c0.tar.xz bukkit-739f08b9b3a1022c3774d4629a410fef6b53a9c0.zip |
Add setCritical and isCritical methods to Arrow.java. Adds BUKKIT-5113
-rw-r--r-- | src/main/java/org/bukkit/entity/Arrow.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Arrow.java b/src/main/java/org/bukkit/entity/Arrow.java index 9676b04d..e49eef07 100644 --- a/src/main/java/org/bukkit/entity/Arrow.java +++ b/src/main/java/org/bukkit/entity/Arrow.java @@ -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); } |