PlayerInteractWithBlockAfterEventSignal Class

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

Methods

subscribe

subscribe(callback: (arg: PlayerInteractWithBlockAfterEvent) => void): (arg: PlayerInteractWithBlockAfterEvent) => void

Adds a callback that will be called after a player interacts with a block.

Parameters

Returns (arg: PlayerInteractWithBlockAfterEvent) => void

Important

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

unsubscribe

unsubscribe(callback: (arg: PlayerInteractWithBlockAfterEvent) => void): void

Removes a callback from being called after a player interacts with a block.

Parameters

Important

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