[Bleeding] Add ProjectileSource interface. Addresses BUKKIT-1038, BUKKIT-1156

By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
Bukkit/Spigot
2014-01-26 20:08:28 -05:00
parent b3c27cf60d
commit 03235e2288
6 changed files with 87 additions and 21 deletions

View File

@@ -9,11 +9,12 @@ import org.bukkit.block.Block;
import org.bukkit.inventory.EntityEquipment;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.projectiles.ProjectileSource;
/**
* Represents a living entity, such as a monster or player
*/
public interface LivingEntity extends Entity, Damageable {
public interface LivingEntity extends Entity, Damageable, ProjectileSource {
/**
* Gets the height of the living entity's eyes above its Location.
@@ -111,14 +112,6 @@ public interface LivingEntity extends Entity, Damageable {
@Deprecated
public Arrow shootArrow();
/**
* Launches a {@link Projectile} from the living entity.
*
* @param projectile class of the projectile to launch
* @return the launched projectile
*/
public <T extends Projectile> T launchProjectile(Class<? extends T> projectile);
/**
* Returns the amount of air that the living entity has remaining, in
* ticks.