Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
ProjectileSource.java
1 package org.bukkit.projectiles;
2 
4 import org.bukkit.util.Vector;
5 
6 /**
7  * Represents a valid source of a projectile.
8  */
9 public interface ProjectileSource {
10 
11  /**
12  * Launches a {@link Projectile} from the ProjectileSource.
13  *
14  * @param projectile class of the projectile to launch
15  * @return the launched projectile
16  */
17  public <T extends Projectile> T launchProjectile(Class<? extends T> projectile);
18 
19  /**
20  * Launches a {@link Projectile} from the ProjectileSource with an
21  * initial velocity.
22  *
23  * @param projectile class of the projectile to launch
24  * @param velocity the velocity with which to launch
25  * @return the launched projectile
26  */
27  public <T extends Projectile> T launchProjectile(Class<? extends T> projectile, Vector velocity);
28 }
public< T extends Projectile > T launchProjectile(Class<?extends T > projectile)