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:
Ursprung
158b3ce2c1
Commit
94f1e1e9de
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren