Class: ExplosionBeforeEvent
eventBeta
包含有关已发生的爆炸的信息。
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
readonlydimension:Dimension
Beta
Remarks
爆炸发生的维度。
Dimension where the explosion has occurred.
Inherited from
source?
readonlyoptionalsource?:Entity
Beta
Remarks
爆炸的可选来源。
Optional source of the explosion.
Inherited from
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.
