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

    Class PlayerCancelBreakingBlockAfterEventBeta

    Contains information regarding an event after a player cancels breaking a block.

    export class PlayerCancelBreakingBlockAfterEvent extends BlockEvent {
    private constructor();
    readonly blockPermutation: BlockPermutation;
    readonly breakProgress: number;
    readonly face: Direction;
    readonly heldItemStack?: ItemStack;
    readonly player: Player;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    block: Block

    Block currently in the world at the location of this event.

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

    blockPermutation: BlockPermutation

    The permutation of the block that the player cancelled breaking.

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

    breakProgress: number

    The progress of breaking the block when the player cancelled in the exclusive range (0, 1).

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

    dimension: Dimension

    Dimension that contains the block that is the subject of this event.

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

    face: Direction

    The face of the block that was being broken.

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

    heldItemStack?: ItemStack

    The item stack that the player was using to break the block, or undefined if empty hand.

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

    player: Player

    Player that cancelled breaking the block for this event.

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