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/ProjectileHitBlockAfterEvent.md.

Class: ProjectileHitBlockAfterEvent

event block

Beta

包含与抛射物击中方块相关的信息。

Contains information related to a projectile hitting a block.

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 a block.


location

readonly location: Vector3

Beta

Remarks

抛射物撞击发生的位置。

Location where the projectile hit occurred.


projectile

readonly projectile: Entity

Beta

Remarks

击中方块的抛射物实体。

Entity for the projectile that hit a block.


source?

readonly optional source?: Entity

Beta

Remarks

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

Optional source entity that fired the projectile.

Methods

getBlockHit()

getBlockHit(): BlockHitInformation

World Mutation Beta

Returns

BlockHitInformation

Remarks

包含关于抛射物击中的方块的附加信息。

Contains additional information about the block that was hit by the projectile.

同领域相关