Interface BlockProjectileSource
-
- All Superinterfaces:
ProjectileSource
- All Known Subinterfaces:
Dispenser
public interface BlockProjectileSource extends ProjectileSource
Represents aProjectileSource
that is a block. Examples are Dispensers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockState
block()
Gets theBlockState
of the projectile source.ServerLocation
location()
Gets theServerLocation
where the projectile source is at.-
Methods inherited from interface org.spongepowered.api.projectile.source.ProjectileSource
launchProjectile, launchProjectile, launchProjectile, launchProjectile, launchProjectileTo, launchProjectileTo
-
-
-
-
Method Detail
-
location
ServerLocation location()
Gets theServerLocation
where the projectile source is at.- Returns:
- The location
-
block
BlockState block()
Gets theBlockState
of the projectile source.- Returns:
- The blockstate
-
-