Interface BlockProjectileSource
- All Superinterfaces:
ProjectileSource
- All Known Subinterfaces:
Dispenser
Represents a
ProjectileSource that is a block. Examples are
Dispensers.-
Method Summary
Modifier and TypeMethodDescriptionblock()Gets theBlockStateof the projectile source.location()Gets theServerLocationwhere the projectile source is at.Methods inherited from interface org.spongepowered.api.projectile.source.ProjectileSource
launchProjectile, launchProjectile, launchProjectile, launchProjectile, launchProjectileTo, launchProjectileTo
-
Method Details
-
location
ServerLocation location()Gets theServerLocationwhere the projectile source is at.- Returns:
- The location
-
block
BlockState block()Gets theBlockStateof the projectile source.- Returns:
- The blockstate
-