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

Class: ExplosionBeforeEvent

event

Beta

包含有关已发生的爆炸的信息。

Contains information regarding an explosion that has happened.

Extends

Properties

cancel

cancel: boolean

Beta

Remarks

如果设置为 true,则取消爆炸事件。

If set to true, cancels the explosion event.


dimension

readonly dimension: Dimension

Beta

Remarks

爆炸发生的维度。

Dimension where the explosion has occurred.

Inherited from

ExplosionAfterEvent.dimension


source?

readonly optional source?: Entity

Beta

Remarks

爆炸的可选来源。

Optional source of the explosion.

Inherited from

ExplosionAfterEvent.source

Methods

getImpactedBlocks()

getImpactedBlocks(): Block[]

Beta

Returns

Block[]

Remarks

受此爆炸事件影响的方块集合。

A collection of blocks impacted by this explosion event.

Inherited from

ExplosionAfterEvent.getImpactedBlocks


setImpactedBlocks()

setImpactedBlocks(blocks): void

Beta

Parameters

blocks

Block[]

受此爆炸影响的新方块列表。

New list of blocks that are impacted by this explosion.

Returns

void

Remarks

更新受此爆炸事件影响的方法集合。

Updates a collection of blocks impacted by this explosion event.

同领域相关