@minecraft/server / ProjectileHitEntityAfterEvent
Class: ProjectileHitEntityAfterEvent ​
Defined in: @minecraft/server/index.d.ts:18770
Contains information related to a projectile hitting an entity.
Properties ​
dimension ​
readonlydimension:Dimension
Defined in: @minecraft/server/index.d.ts:18777
Remarks ​
Dimension where this projectile hit took place.
hitVector ​
readonlyhitVector:Vector3
Defined in: @minecraft/server/index.d.ts:18783
Remarks ​
Direction vector of the projectile as it hit an entity.
location ​
readonlylocation:Vector3
Defined in: @minecraft/server/index.d.ts:18789
Remarks ​
Location where the projectile hit occurred.
projectile ​
readonlyprojectile:Entity
Defined in: @minecraft/server/index.d.ts:18795
Remarks ​
Entity for the projectile that hit an entity.
source? ​
readonlyoptionalsource?:Entity
Defined in: @minecraft/server/index.d.ts:18801
Remarks ​
Optional source entity that fired the projectile.
Methods ​
getEntityHit() ​
getEntityHit():
EntityHitInformation
Defined in: @minecraft/server/index.d.ts:18810
Returns ​
Remarks ​
Contains additional information about an entity that was hit.
This function can't be called in restricted-execution mode.