From b004c409f038fddaea0817db5dd77ab01abe6e39 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 29 Feb 2012 18:31:20 -0500 Subject: [PATCH] Re-added launchProjectile lost due to incorrect conflict resolution. By: EvilSeph --- .../src/main/java/org/bukkit/entity/LivingEntity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 0ffefa5e33..e45fc721c0 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -114,6 +114,15 @@ public interface LivingEntity extends Entity { @Deprecated public Arrow shootArrow(); + /** + * Launches a {@link Projectile} from the entity. + * + * @param projectile Class of the projectile to launch + * + * @return The launched projectile. + */ + public T launchProjectile(Class projectile); + /** * Returns the amount of air that this entity has remaining, in ticks *