Class BeforeExplosionEvent

Contains information regarding an explosion that has happened.

Hierarchy

  • BeforeExplosionEvent

Constructors

Properties

cancel: boolean

If set to true, cancels the explosion event.

dimension: Dimension

Dimension where the explosion has occurred.

impactedBlocks: BlockLocation[]

A collection of blocks impacted by this explosion event. Note that this property can be updated to change the set of blocks impacted.

source: Entity

Optional source of the explosion.