mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Add methods to get and set knockback strength in Arrow. Adds BUKKIT-5103
By: Likaos <romain.rosique@gmail.com>
This commit is contained in:
@@ -3,4 +3,21 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents an arrow.
|
* 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);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user