Athena.systems.inventory.events ​
Modules ​
Functions ​
invoke ​
Usage
Athena.systems.inventory.events.invoke<K
>(player
, event
, ...args
): void
Invoke an inventory event.
Export
Type parameters ​
Name | Type |
---|---|
K | extends "onDrop" |
Parameters ​
Name | Type |
---|---|
player | Player |
event | K |
...args | InventoryEventTriggers [K ] |
Returns ​
void
Defined in ​
server/systems/inventory/events.ts:35
on ​
Usage
Athena.systems.inventory.events.on<K
>(event
, callback
): void
Listen for an invoked inventory event.
Export
Type parameters ​
Name | Type |
---|---|
K | extends "onDrop" |
Parameters ​
Name | Type |
---|---|
event | K |
callback | InventoryEventCallbacks [K ] |
Returns ​
void