Skip to main content

Class: BlockExplodeAfterEventSignal

Manages callbacks that are connected to when an explosion occurs, as it impacts individual blocks.

Constructors

new BlockExplodeAfterEventSignal()

private new BlockExplodeAfterEventSignal(): BlockExplodeAfterEventSignal

Returns

BlockExplodeAfterEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argBlockExplodeAfterEvent
Returns

void

Remarks

Adds a callback that will be called when an explosion occurs, as it impacts individual blocks.

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


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

Removes a callback from being called when an explosion occurs, as it impacts individual blocks.

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