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