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

    Class VirtualContainerCloseAfterEventBeta

    Contains information about a player's virtual container screen that closed, including the contents of the container at that moment.

    export class VirtualContainerCloseAfterEvent {
    private constructor();
    readonly container: VirtualContainer;
    readonly items: (ItemStack | undefined)[];
    readonly player: Player;
    readonly reason: VirtualContainerCloseReason;
    }
    Index
    container: VirtualContainer

    The container whose screen closed.

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

    items: (ItemStack | undefined)[]

    The contents of every slot of the container when the screen closed. Empty slots are undefined. Storage items such as bundles hold their contents as they were at that moment.

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

    player: Player

    The player whose screen closed. When the reason is PlayerLeft the player is no longer valid.

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

    Why the screen closed.

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