ItemEvents.pickedUp
2025年3月29日小於 1 分鐘
/**
* Invoked when a player picks up an item. Cancelling (in `ItemEvents.canPickUp`) will prevent the item from being picked up.
*/
function pickedUp(extra: $ResourceKey$$Type<($Item)>, handler: (event: $ItemPickedUpKubeEvent) => void): void
function pickedUp(handler: (event: $ItemPickedUpKubeEvent) => void): void