For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/ProjectileHitEntityAfterEvent.md.

Class: ProjectileHitEntityAfterEvent

event entity

Beta

包含与弹射物击中实体相关的信息。

Contains information related to a projectile hitting an entity.

Properties

dimension

readonly dimension: Dimension

Beta

弹射物击中发生的维度。

Remarks

Dimension where this projectile hit took place.


hitVector

readonly hitVector: Vector3

Beta

弹射物击中实体时的方向向量。

Remarks

Direction vector of the projectile as it hit an entity.


location

readonly location: Vector3

Beta

弹射物击中的位置。

Remarks

Location where the projectile hit occurred.


projectile

readonly projectile: Entity

Beta

击中实体的弹射物实体。

Remarks

Entity for the projectile that hit an entity.


source?

readonly optional source?: Entity

Beta

发射弹射物的可选源实体。

Remarks

Optional source entity that fired the projectile.

Methods

getEntityHit()

getEntityHit(): EntityHitInformation

World Mutation Beta

包含有关被击中的实体的附加信息。

Returns

EntityHitInformation

Remarks

Contains additional information about an entity that was hit.

同领域相关