Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.projectiles.ProjectileSource Interface Reference
Inheritance diagram for org.bukkit.projectiles.ProjectileSource:
org.bukkit.entity.LivingEntity org.bukkit.projectiles.BlockProjectileSource org.bukkit.entity.Ambient org.bukkit.entity.ComplexLivingEntity org.bukkit.entity.Creature org.bukkit.entity.Flying org.bukkit.entity.HumanEntity org.bukkit.entity.Slime org.bukkit.entity.Bat org.bukkit.entity.EnderDragon org.bukkit.entity.Ageable org.bukkit.entity.Golem org.bukkit.entity.Monster org.bukkit.entity.NPC org.bukkit.entity.WaterMob org.bukkit.entity.Ghast org.bukkit.entity.Player org.bukkit.entity.MagmaCube

Public Member Functions

public< T extends Projectile > T launchProjectile (Class<?extends T > projectile)
 
public< T extends Projectile > T launchProjectile (Class<?extends T > projectile, Vector velocity)
 

Detailed Description

Represents a valid source of a projectile.

Definition at line 9 of file ProjectileSource.java.

Member Function Documentation

public<T extends Projectile> T org.bukkit.projectiles.ProjectileSource.launchProjectile ( Class<?extends T >  projectile)

Launches a Projectile from the ProjectileSource.

Parameters
projectileclass of the projectile to launch
Returns
the launched projectile
public<T extends Projectile> T org.bukkit.projectiles.ProjectileSource.launchProjectile ( Class<?extends T >  projectile,
Vector  velocity 
)

Launches a Projectile from the ProjectileSource with an initial velocity.

Parameters
projectileclass of the projectile to launch
velocitythe velocity with which to launch
Returns
the launched projectile

The documentation for this interface was generated from the following file: