Skip to main content

Class: ItemStopUseOnAfterEventSignal

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

Constructors

new ItemStopUseOnAfterEventSignal()

private new ItemStopUseOnAfterEventSignal(): ItemStopUseOnAfterEventSignal

Returns

ItemStopUseOnAfterEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argItemStopUseOnAfterEvent
Returns

void

Remarks

Adds a callback that will be called when an item stops being used on 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 an item is used on a block.

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