diff options
author | Likaos <romain.rosique@gmail.com> | 2014-01-18 18:46:31 -0500 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2014-01-30 21:58:47 -0700 |
commit | 51eba0f1bd21f1019d1b072d90ca956a9243b6f7 (patch) | |
tree | 8f9b458e55048ee80fc8bfcb8035edca4a316c37 /src/main/java/org | |
parent | 10a28d123b14f068355239269412f3e7e8806aa6 (diff) | |
download | bukkit-51eba0f1bd21f1019d1b072d90ca956a9243b6f7.tar bukkit-51eba0f1bd21f1019d1b072d90ca956a9243b6f7.tar.gz bukkit-51eba0f1bd21f1019d1b072d90ca956a9243b6f7.tar.lz bukkit-51eba0f1bd21f1019d1b072d90ca956a9243b6f7.tar.xz bukkit-51eba0f1bd21f1019d1b072d90ca956a9243b6f7.zip |
Add methods to get and set knockback strength in Arrow. Adds BUKKIT-5103
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Arrow.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Arrow.java b/src/main/java/org/bukkit/entity/Arrow.java index 26d34739..9676b04d 100644 --- a/src/main/java/org/bukkit/entity/Arrow.java +++ b/src/main/java/org/bukkit/entity/Arrow.java @@ -3,4 +3,21 @@ package org.bukkit.entity; /** * Represents an arrow. */ -public interface Arrow extends Projectile {} +public interface Arrow extends Projectile { + + /** + * Gets the knockback strength for an arrow, which is the + * {@link org.bukkit.enchantments.Enchantment#KNOCKBACK KnockBack} level + * of the bow that shot it. + * + * @return the knockback strength value + */ + public int getKnockbackStrength(); + + /** + * Sets the knockback strength for an arrow. + * + * @param knockbackStrength the knockback strength value + */ + public void setKnockbackStrength(int knockbackStrength); +} |