Skip to content

ProjectileHitEntityEvent ​

class · pocketmine\event\entity\ProjectileHitEntityEvent · source

Extends ProjectileHitEvent

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\projectile\Projectile $entity, \pocketmine\math\RayTraceResult $rayTraceResult, \pocketmine\entity\Entity $entityHit)

getEntityHit() ​

php
public function getEntityHit() : \pocketmine\entity\Entity

Returns the Entity struck by the projectile.

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