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