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

Class: ItemCompleteUseAfterEvent

event

Beta

包含与可蓄力物品完成蓄力相关的信息。

Contains information related to a chargeable item completing being charged.

Properties

itemStack

readonly itemStack: ItemStack

Beta

Remarks

返回已完成蓄力的物品堆。

Returns the item stack that has completed charging.


source

readonly source: Player

Beta

Remarks

返回触发此物品事件的源实体。

Returns the source entity that triggered this item event.


useDuration

readonly useDuration: number

Beta

Remarks

返回距蓄力完成周期还剩余的时长(以刻为单位)。

Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.

同领域相关