Class: ProjectileHitEntityAfterEvent
event entityBeta
包含与弹射物击中实体相关的信息。
Contains information related to a projectile hitting an entity.
Properties
dimension
readonlydimension:Dimension
Beta
弹射物击中发生的维度。
Remarks
Dimension where this projectile hit took place.
hitVector
readonlyhitVector:Vector3
Beta
弹射物击中实体时的方向向量。
Remarks
Direction vector of the projectile as it hit an entity.
location
readonlylocation:Vector3
Beta
弹射物击中的位置。
Remarks
Location where the projectile hit occurred.
projectile
readonlyprojectile:Entity
Beta
击中实体的弹射物实体。
Remarks
Entity for the projectile that hit an entity.
source?
readonlyoptionalsource?:Entity
Beta
发射弹射物的可选源实体。
Remarks
Optional source entity that fired the projectile.
Methods
getEntityHit()
getEntityHit():
EntityHitInformation
World Mutation Beta
包含有关被击中的实体的附加信息。
Returns
Remarks
Contains additional information about an entity that was hit.
