Skip to content

ProjectileHitEvent ​

abstract class · pocketmine\event\entity\ProjectileHitEvent · source

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\RayTraceResult

Returns a RayTraceResult object containing information such as the exact position struck, the AABB it hit, and the face of the AABB that it hit.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.