summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/bukkit/entity/LivingEntity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
index 0ffefa5e..e45fc721 100644
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
@@ -115,6 +115,15 @@ public interface LivingEntity extends Entity {
public Arrow shootArrow();
/**
+ * Launches a {@link Projectile} from the 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 this entity has remaining, in ticks
*
* @return Amount of air remaining