Script API - v1.26.10
    Preparing search index...

    Class ItemCompleteUseAfterEvent

    Contains information related to a chargeable item completing being charged.

    export class ItemCompleteUseAfterEvent {
    private constructor();
    readonly itemStack: ItemStack;
    readonly source: Player;
    readonly useDuration: number;
    }
    Index

    Constructors

    Properties

    Constructors

    Properties

    itemStack: ItemStack

    Returns the item stack that has completed charging.

    This property can't be read in early-execution mode.

    source: Player

    Returns the source entity that triggered this item event.

    This property can't be read in early-execution mode.

    useDuration: number

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

    This property can't be read in early-execution mode.