ItemStopUseAfterEvent Class
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
read-only itemStack?: ItemStack;
The impacted item stack that is stopping being charged. ItemStopUseAfterEvent can be called when teleporting to a different dimension and this can be undefined.
Type: ItemStack
source
read-only source: Player;
Returns the source entity that triggered this item event.
Type: Player
useDuration
read-only useDuration: number;
Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.
Type: number
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for