For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerCancelBreakingBlockAfterEvent.md.

Class: PlayerCancelBreakingBlockAfterEvent

event player block

Beta

Preview

包含玩家取消方块破坏时触发事件的相关信息。

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

Extends

Properties

block

readonly block: Block

Beta

Remarks

当前世界中此事件所在位置的方块。

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

Inherited from

BlockEvent.block


blockPermutation

readonly blockPermutation: BlockPermutation

Beta

玩家取消破坏的方块的排列。

Remarks

The permutation of the block that the player cancelled breaking.


breakProgress

readonly breakProgress: number

Beta

玩家取消时破坏方块的进度,范围为 (0, 1)。

Remarks

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


dimension

readonly dimension: Dimension

Beta

Remarks

包含此事件主体方块的维度。

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

Inherited from

BlockEvent.dimension


face

readonly face: Direction

Beta

正在被破坏的方块的面。

Remarks

The face of the block that was being broken.


heldItemStack?

readonly optional heldItemStack?: ItemStack

Beta

玩家用于破坏方块的物品堆,如果为空手则为 undefined

Remarks

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


player

readonly player: Player

Beta

取消破坏此方块的玩家。

Remarks

Player that cancelled breaking the block for this event.

同领域相关