For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityItemPickupBeforeEventSignal.md.

Class: EntityItemPickupBeforeEventSignal

event entity

Beta

管理与实体将要拾取物品时相关的回调。

Manages callbacks that are connected to when an entity will pick up an item.

Methods

subscribe()

subscribe(callback, options?): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

此闭包以受限执行权限被调用。

Tip

This closure is called with restricted-execution privilege.

options?

EntityItemPickupEventOptions

Returns

Tip

以受限执行权限调用的闭包。

Tip

Closure that is called with restricted-execution privilege.

(arg0) => void

Remarks

添加一个将在实体将要拾取物品时被调用的回调。

Adds a callback that will be called when an entity will pick up an item.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Tip

此闭包以受限执行权限被调用。

Tip

This closure is called with restricted-execution privilege.

Returns

void

Remarks

移除一个在实体将要拾取物品时被调用的回调。

Removes a callback from being called when an entity will pick up an item.

同领域相关