ItemStartUseOnAfterEventSignal Class

Manages callbacks that are connected to an item starting being used on a block event.

Methods

subscribe

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

Adds a callback that will be called when an item is used on a block.

Parameters

Returns (arg: ItemStartUseOnAfterEvent) => void

Important

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

unsubscribe

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

Removes a callback from being called when an item is used on a block.

Parameters

Important

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