PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (Projectile $entity, private RayTraceResult $rayTraceResult) | |
call () | |
getEntity () | |
getEventName () | |
getRayTraceResult () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
@allowHandle @phpstan-extends EntityEvent<Projectile>
Definition at line 33 of file ProjectileHitEvent.php.
pocketmine\event\entity\ProjectileHitEvent::__construct | ( | Projectile | $entity, |
private RayTraceResult | $rayTraceResult ) |
Definition at line 34 of file ProjectileHitEvent.php.
|
inherited |
pocketmine\event\entity\ProjectileHitEvent::getEntity | ( | ) |
Reimplemented from pocketmine\event\entity\EntityEvent.
Definition at line 44 of file ProjectileHitEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
pocketmine\event\entity\ProjectileHitEvent::getRayTraceResult | ( | ) |
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.
Definition at line 52 of file ProjectileHitEvent.php.
Referenced by pocketmine\entity\projectile\EnderPearl\onHit().
|
staticinherited |
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
|
protectedinherited |