ProjectileHitBlockEvent
Extends ProjectileHitEvent
Methods
__construct()
php
public function __construct(\pocketmine\entity\projectile\Projectile $entity, \pocketmine\math\RayTraceResult $rayTraceResult, \pocketmine\block\Block $blockHit)getBlockHit()
php
public function getBlockHit() : \pocketmine\block\BlockReturns the Block struck by the projectile. Hint: to get the block face hit, look at the RayTraceResult.
