author | ms.author | ms.service | title | description |
---|---|---|---|---|
jakeshirley |
jashir |
minecraft-bedrock-edition |
minecraft/server.ExplosionAfterEventSignal Class |
Contents of the @minecraft/server.ExplosionAfterEventSignal class. |
Manages callbacks that are connected to when an explosion occurs.
subscribe(callback: (arg: ExplosionAfterEvent) => void): (arg: ExplosionAfterEvent) => void
Adds a callback that will be called when an explosion occurs.
- callback: (arg: ExplosionAfterEvent) => void
Returns (arg: ExplosionAfterEvent) => void
Important
This function can't be called in read-only mode.
unsubscribe(callback: (arg: ExplosionAfterEvent) => void): void
Removes a callback from being called when an explosion occurs.
- callback: (arg: ExplosionAfterEvent) => void
Important
This function can't be called in read-only mode.