Class ProjectileHitAfterEventBeta

Contains information related to a projectile hitting an entity or block.

Hierarchy

  • ProjectileHitAfterEvent

Constructors

Properties

dimension: Dimension

Remarks

Dimension where this projectile hit took place.

hitVector: Vector3

Remarks

Direction vector of the projectile as it hit a block/entity.

location: Vector3

Remarks

Location where the projectile hit occurred.

projectile: Entity

Remarks

Entity for the projectile that hit a block/entity.

source: Entity

Remarks

Optional source entity that fired the projectile.

Methods

  • Returns undefined | BlockHitInformation

    Remarks

    Contains additional information about the block that was hit by the projectile, or undefined if the projectile did not hit a block.

    This function can't be called in read-only mode.

  • Returns undefined | EntityHitInformation

    Remarks

    Contains additional information about a block that was hit.

    This function can't be called in read-only mode.