Skip to main content

Class: PlayerInteractWithBlockAfterEventSignal

Manages callbacks that are connected to after a player interacts with a block.

Constructors

new PlayerInteractWithBlockAfterEventSignal()

private new PlayerInteractWithBlockAfterEventSignal(): PlayerInteractWithBlockAfterEventSignal

Returns

PlayerInteractWithBlockAfterEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argPlayerInteractWithBlockAfterEvent
Returns

void

Remarks

Adds a callback that will be called after a player interacts with 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 after a player interacts with a block.

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

Throws

This function can throw errors.