Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Manages callbacks that are connected to before an explosion occurs.
Methods
subscribe
subscribe(callback: (arg0: ExplosionBeforeEvent) => void): (arg0: ExplosionBeforeEvent) => void
Adds a callback that will be called when before an explosion occurs. The callback can optionally change or cancel explosion behavior.
Parameters
- callback: (arg0: ExplosionBeforeEvent) => void This closure is called with restricted-execution privilege.
Returns (arg0: ExplosionBeforeEvent) => void The returned closure is called with restricted-execution privilege.
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.
unsubscribe
unsubscribe(callback: (arg0: ExplosionBeforeEvent) => void): void
Removes a callback from being called from before when an explosion would occur.
Parameters
- callback: (arg0: ExplosionBeforeEvent) => void This closure is called with restricted-execution privilege.
Notes:
- This function can't be called in restricted-execution mode.
- This function can be called in early-execution mode.