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/ItemStopUseAfterEventSignal.md.

Class: ItemStopUseAfterEventSignal

event

Beta

管理与带有已注册的 minecraft:chargeable 组件的物品停止蓄力事件相关联的回调。

Manages callbacks that are connected to the stopping of charging for an item that has a registered minecraft:chargeable component.

Methods

subscribe()

subscribe(callback): (arg0) => void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

(arg0) => void

Remarks

添加一个回调,当可蓄力物品停止蓄力时将被调用。

Adds a callback that will be called when a chargeable item stops charging.


unsubscribe()

unsubscribe(callback): void

World Mutation Early Execution Beta

Parameters

callback

(arg0) => void

Returns

void

Remarks

移除一个回调,使可蓄力物品停止蓄力时不再被调用。

Removes a callback from being called when a chargeable item stops charging.

同领域相关