AbstractHorse, Ageable, Ambient, Animals, ArmorStand, Bat, Blaze, BlockProjectileSource, CaveSpider, ChestedHorse, Chicken, ComplexLivingEntity, Cow, Creature, Creeper, Donkey, ElderGuardian, EnderDragon, Enderman, Endermite, Evoker, Flying, Ghast, Giant, Golem, Guardian, Horse, HumanEntity, Husk, Illager, Illusioner, IronGolem, LivingEntity, Llama, MagmaCube, Monster, Mule, MushroomCow, NPC, Ocelot, Parrot, Pig, PigZombie, Player, PolarBear, Rabbit, Sheep, Shulker, Silverfish, Skeleton, SkeletonHorse, Slime, Snowman, Spellcaster, Spider, Squid, Stray, Vex, Villager, Vindicator, WaterMob, Witch, Wither, WitherSkeleton, Wolf, Zombie, ZombieHorse, ZombieVillagerpublic interface ProjectileSource
| Modifier and Type | Method | Description |
|---|---|---|
<T extends Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile) |
Launches a
Projectile from the ProjectileSource. |
<T extends Projectile> |
launchProjectile(java.lang.Class<? extends T> projectile,
Vector velocity) |
Launches a
Projectile from the ProjectileSource with an
initial velocity. |
<T extends Projectile> T launchProjectile(java.lang.Class<? extends T> projectile)
Projectile from the ProjectileSource.T - a projectile subclassprojectile - class of the projectile to launch<T extends Projectile> T launchProjectile(java.lang.Class<? extends T> projectile, Vector velocity)
Projectile from the ProjectileSource with an
initial velocity.T - a projectile subclassprojectile - class of the projectile to launchvelocity - the velocity with which to launchCopyright © 2018. All rights reserved.