Class: PlayerCancelBreakingBlockAfterEvent
event player blockBeta
Preview
包含玩家取消方块破坏时触发事件的相关信息。
Contains information regarding an event after a player cancels breaking a block.
Extends
Properties
block
readonlyblock:Block
Beta
Remarks
当前世界中此事件所在位置的方块。
Block currently in the world at the location of this event.
Inherited from
blockPermutation
readonlyblockPermutation:BlockPermutation
Beta
玩家取消破坏的方块的排列。
Remarks
The permutation of the block that the player cancelled breaking.
breakProgress
readonlybreakProgress:number
Beta
玩家取消时破坏方块的进度,范围为 (0, 1)。
Remarks
The progress of breaking the block when the player cancelled in the exclusive range (0, 1).
dimension
readonlydimension:Dimension
Beta
Remarks
包含此事件主体方块的维度。
Dimension that contains the block that is the subject of this event.
Inherited from
face
readonlyface:Direction
Beta
正在被破坏的方块的面。
Remarks
The face of the block that was being broken.
heldItemStack?
readonlyoptionalheldItemStack?:ItemStack
Beta
玩家用于破坏方块的物品堆,如果为空手则为 undefined。
Remarks
The item stack that the player was using to break the block, or undefined if empty hand.
player
readonlyplayer:Player
Beta
取消破坏此方块的玩家。
Remarks
Player that cancelled breaking the block for this event.
