Interface BlockProjectileSource
-
- All Superinterfaces:
ProjectileSource
- All Known Subinterfaces:
Dispenser
public interface BlockProjectileSource extends ProjectileSource
Represents aProjectileSourcethat is a block. Examples are Dispensers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockStateblock()Gets theBlockStateof the projectile source.ServerLocationlocation()Gets theServerLocationwhere 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 theServerLocationwhere the projectile source is at.- Returns:
- The location
-
block
BlockState block()
Gets theBlockStateof the projectile source.- Returns:
- The blockstate
-
-