public interface ProjectileSource
Modifier and Type | Field and Description |
---|---|
static UnknownProjectileSource |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
<T extends Projectile> |
launchProjectile(Class<T> projectileClass)
Launches a
Projectile from this projectile source. |
<T extends Projectile> |
launchProjectile(Class<T> projectileClass,
com.flowpowered.math.vector.Vector3d velocity)
Launches a
Projectile from this projectile source. |
static final UnknownProjectileSource UNKNOWN
<T extends Projectile> Optional<T> launchProjectile(Class<T> projectileClass)
Projectile
from this projectile source.T
- The Type of ProjectileprojectileClass
- The class of the projectile<T extends Projectile> Optional<T> launchProjectile(Class<T> projectileClass, com.flowpowered.math.vector.Vector3d velocity)
Projectile
from this projectile source.T
- The Type of ProjectileprojectileClass
- The class of the projectilevelocity
- The velocity to launch the projectile