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 theBlockState
of the projectile source.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 Details
-
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
-