public interface ProjectileSource
| Modifier and Type | Method and 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 © 2022. All rights reserved.