#519: Add ArrowBodyCountChangeEvent

By: Martoph <sager1018@gmail.com>
This commit is contained in:
Bukkit/Spigot
2020-09-02 18:52:37 +10:00
parent 394a95bb69
commit dcad73811e
2 changed files with 115 additions and 0 deletions

View File

@@ -192,6 +192,34 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
*/
public void setMaximumAir(int ticks);
/**
* Gets the time in ticks until the next arrow leaves the entity's body.
*
* @return ticks until arrow leaves
*/
public int getArrowCooldown();
/**
* Sets the time in ticks until the next arrow leaves the entity's body.
*
* @param ticks time until arrow leaves
*/
public void setArrowCooldown(int ticks);
/**
* Gets the amount of arrows in an entity's body.
*
* @return amount of arrows in body
*/
public int getArrowsInBody();
/**
* Set the amount of arrows in the entity's body.
*
* @param count amount of arrows in entity's body
*/
public void setArrowsInBody(int count);
/**
* Returns the living entity's current maximum no damage ticks.
* <p>