Skip to main content

Class: TargetBlockHitAfterEvent

Contains information related to changes to a target block hit.

Extends

Constructors

new TargetBlockHitAfterEvent()

private new TargetBlockHitAfterEvent(): TargetBlockHitAfterEvent

Returns

TargetBlockHitAfterEvent

Overrides

BlockEvent . constructor

Properties

block

readonly block: Block

Remarks

Block impacted by this event.

Inherited from

BlockEvent . block


dimension

readonly dimension: Dimension

Remarks

Dimension that contains the block that is the subject of this event.

Inherited from

BlockEvent . dimension


hitVector

readonly hitVector: Vector3

Remarks

The position where the source hit the block.


previousRedstonePower

readonly previousRedstonePower: number

Remarks

The redstone power before the block is hit.


redstonePower

readonly redstonePower: number

Remarks

The redstone power at the time the block is hit.


source

readonly source: Entity

Remarks

Optional source that hit the target block.