Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Arrow.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents an arrow.
5  */
6 public interface Arrow extends Projectile {
7 
8  /**
9  * Gets the knockback strength for an arrow, which is the
10  * {@link org.bukkit.enchantments.Enchantment#KNOCKBACK KnockBack} level
11  * of the bow that shot it.
12  *
13  * @return the knockback strength value
14  */
15  public int getKnockbackStrength();
16 
17  /**
18  * Sets the knockback strength for an arrow.
19  *
20  * @param knockbackStrength the knockback strength value
21  */
22  public void setKnockbackStrength(int knockbackStrength);
23 
24  /**
25  * Gets whether this arrow is critical.
26  * <p>
27  * Critical arrows have increased damage and cause particle effects.
28  * <p>
29  * Critical arrows generally occur when a player fully draws a bow before
30  * firing.
31  *
32  * @return true if it is critical
33  */
34  public boolean isCritical();
35 
36  /**
37  * Sets whether or not this arrow should be critical.
38  *
39  * @param critical whether or not it should be critical
40  */
41  public void setCritical(boolean critical);
42 }
void setKnockbackStrength(int knockbackStrength)
void setCritical(boolean critical)