Skip to main content

Class: ProjectileHitBlockAfterEventSignal

Manages callbacks that are connected to when a projectile hits a block.

Constructors

new ProjectileHitBlockAfterEventSignal()

private new ProjectileHitBlockAfterEventSignal(): ProjectileHitBlockAfterEventSignal

Returns

ProjectileHitBlockAfterEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argProjectileHitBlockAfterEvent
Returns

void

Remarks

Adds a callback that will be called when a projectile hits a block.

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 a projectile hits a block.

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