Script API - v26.70.26
    Preparing search index...

    Class VirtualContainerItemChangeAfterEventBeta

    Contains information about a slot of a virtual container that a player changed through its screen. Changes made by scripts do not raise this event.

    export class VirtualContainerItemChangeAfterEvent {
    private constructor();
    readonly beforeItemStack?: ItemStack;
    readonly container: VirtualContainer;
    readonly itemStack?: ItemStack;
    readonly player: Player;
    readonly slot: number;
    }
    Index
    beforeItemStack?: ItemStack

    The item that was in the slot before the change, if any. A storage item such as a bundle holds its contents as they were at the change, unless it was dropped from the slot onto the ground: its contents then go to the dropped item.

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

    container: VirtualContainer

    The container that changed.

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

    itemStack?: ItemStack

    The item in the slot after the change, if any. A storage item such as a bundle holds its contents as they were at the change.

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

    player: Player

    The player who made the change.

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

    slot: number

    The slot that changed.

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