[Bleeding] Add ProjectileSource interface. Addresses BUKKIT-1038, BUKKIT-1156
By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user