SerenityJS
    Preparing search index...

    Interface BlockInteractionOptions

    interface BlockInteractionOptions {
        cancel: boolean;
        clickedFace?: BlockFace;
        clickedPosition?: Vector3f;
        origin?: Player;
        placingBlock?: boolean;
    }
    Index

    Properties

    cancel: boolean

    Whether the block interaction should be cancelled. This property can be modified to cancel the interaction with the block.

    clickedFace?: BlockFace

    The face of the block that was interacted with. This property can be modified to change the face that the block is interacted with.

    clickedPosition?: Vector3f

    The relative position of the block that was interacted with. This property can be modified to change the position of the block that is interacted with.

    origin?: Player

    The player that interacted with the block. This property can be modified to change the player that is interacting with the block.

    placingBlock?: boolean

    Whether the interaction will result in a block being placed. The position of the block will be relative to the clickedFace property. This property can be modified to cancel the placement of a block when interacting with it.