PlayerPlaceBlockAfterEventSignal Class

Manages callbacks that are connected to when a block is placed by a player.

Methods

subscribe

subscribe(callback: (arg: PlayerPlaceBlockAfterEvent) => void, options?: BlockEventOptions): (arg: PlayerPlaceBlockAfterEvent) => void

Adds a callback that will be called when a block is placed by a player.

Parameters

Returns (arg: PlayerPlaceBlockAfterEvent) => void

Important

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

unsubscribe

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

Removes a callback from being called when an block is placed by a player.

Parameters

Important

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