Class: ItemReleaseUseAfterEvent
eventBeta
包含与可蓄力物品在玩家结束使用并释放建造动作时相关的信息。
Contains information related to a chargeable item when the player has finished using the item and released the build action.
Properties
itemStack?
readonlyoptionalitemStack?:ItemStack
Beta
Remarks
返回触发此物品事件的物品堆。
Returns the item stack that triggered this item event.
source
readonlysource:Player
Beta
Remarks
返回触发此物品事件的源实体。
Returns the source entity that triggered this item event.
useDuration
readonlyuseDuration:number
Beta
Remarks
返回距蓄力完成周期还剩余的时长(以刻为单位)。
Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.
