Class: ItemUseAfterEventSignal
Manages callbacks that are connected to an item use event.
Constructors
new ItemUseAfterEventSignal()
private
new ItemUseAfterEventSignal():ItemUseAfterEventSignal
Returns
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | ItemUseAfterEvent |
Returns
void
Remarks
Adds a callback that will be called when an item is used.
This function can't be called in read-only mode.