@minecraft
    正在准备搜索索引...

    类 PlayerBreakBlockBeforeEvent

    Contains information regarding an event before a player breaks a block.

    层级 (查看层级一览)

    索引

    属性

    block: Block

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

    cancel: boolean

    If set to true, cancels the block break event.

    dimension: Dimension

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

    itemStack?: ItemStack

    The item stack that is being used to break the block, or undefined if empty hand.

    player: Player

    Player breaking the block for this event.