org.bukkit.projectiles
Interface ProjectileSource

All Known Subinterfaces:
Ageable, Ambient, Animals, Bat, Blaze, BlockProjectileSource, CaveSpider, Chicken, ComplexLivingEntity, Cow, Creature, Creeper, EnderDragon, Enderman, Flying, Ghast, Giant, Golem, Horse, HumanEntity, IronGolem, LivingEntity, MagmaCube, Monster, MushroomCow, NPC, Ocelot, Pig, PigZombie, Player, Sheep, Silverfish, Skeleton, Slime, Snowman, Spider, Squid, Villager, WaterMob, Witch, Wither, Wolf, Zombie

public interface ProjectileSource

Represents a valid source of a projectile.


Method Summary
<T extends Projectile>
T
launchProjectile(Class<? extends T> projectile)
          Launches a Projectile from the ProjectileSource.
<T extends Projectile>
T
launchProjectile(Class<? extends T> projectile, Vector velocity)
          Launches a Projectile from the ProjectileSource with an initial velocity.
 

Method Detail

launchProjectile

<T extends Projectile> T launchProjectile(Class<? extends T> projectile)
Launches a Projectile from the ProjectileSource.

Parameters:
projectile - class of the projectile to launch
Returns:
the launched projectile

launchProjectile

<T extends Projectile> T launchProjectile(Class<? extends T> projectile,
                                          Vector velocity)
Launches a Projectile from the ProjectileSource with an initial velocity.

Parameters:
projectile - class of the projectile to launch
velocity - the velocity with which to launch
Returns:
the launched projectile


Copyright © 2014. All rights reserved.