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