@minecraft/server / ItemStopUseAfterEvent
Class: ItemStopUseAfterEvent ​
Defined in: @minecraft/server/index.d.ts:15091
Contains information related to a chargeable item has finished an items use cycle, or when the player has released the use action with the item.
Properties ​
itemStack? ​
readonlyoptionalitemStack?:ItemStack
Defined in: @minecraft/server/index.d.ts:15100
Remarks ​
The impacted item stack that is stopping being charged. ItemStopUseAfterEvent can be called when teleporting to a different dimension and this can be undefined.
source ​
readonlysource:Player
Defined in: @minecraft/server/index.d.ts:15106
Remarks ​
Returns the source entity that triggered this item event.
useDuration ​
readonlyuseDuration:number
Defined in: @minecraft/server/index.d.ts:15113
Remarks ​
Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.