ProjectileHitEvent
Extends EntityEvent
Methods
__construct()
php
public function __construct(\pocketmine\entity\projectile\Projectile $entity, \pocketmine\math\RayTraceResult $rayTraceResult)getEntity()
php
public function getEntity()getRayTraceResult()
php
public function getRayTraceResult() : \pocketmine\math\RayTraceResultReturns a RayTraceResult object containing information such as the exact position struck, the AABB it hit, and the face of the AABB that it hit.
