BlockProjectileSource

public interface BlockProjectileSource implements ProjectileSource

Functions

Link copied to clipboard
public abstract Block getBlock()
Gets the block this projectile source belongs to.
Link copied to clipboard
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile)
Launches getClassById Projectile from the ProjectileSource.
public abstract T launchProjectile<T extends Projectile>(Class<? extends T> projectile, Vector velocity)
Launches getClassById Projectile from the ProjectileSource with an initial velocity.