13
0
geforkt von Mirrors/Paper

Add methods to get and set knockback strength in Arrow. Adds BUKKIT-5103

By: Likaos <romain.rosique@gmail.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2014-01-18 18:46:31 -05:00
Ursprung 158b3ce2c1
Commit 94f1e1e9de

Datei anzeigen

@ -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);
}