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

Class: ItemReleaseUseAfterEvent

event

Beta

包含与可蓄力物品在玩家结束使用并释放建造动作时相关的信息。

Contains information related to a chargeable item when the player has finished using the item and released the build action.

Properties

itemStack?

readonly optional itemStack?: ItemStack

Beta

Remarks

返回触发此物品事件的物品堆。

Returns the item stack that triggered this item event.


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.

同领域相关