Class: PlayerBreakBlockAfterEvent
event player blockBeta
包含玩家破坏方块后的事件相关信息。
Contains information regarding an event after a player breaks a block.
Extends
Properties
block
readonlyblock:Block
Beta
Remarks
当前世界中此事件所在位置的方块。
Block currently in the world at the location of this event.
Inherited from
brokenBlockPermutation
readonlybrokenBlockPermutation:BlockPermutation
Beta
返回该方块被破坏前的排列信息。
Remarks
Returns permutation information about this block before it was broken.
dimension
readonlydimension:Dimension
Beta
Remarks
包含此事件主体方块的维度。
Dimension that contains the block that is the subject of this event.
Inherited from
itemStackAfterBreak?
readonlyoptionalitemStackAfterBreak?:ItemStack
Beta
用于破坏方块后手中的物品堆,如果为空手则为 undefined。
Remarks
The item stack that was used to break the block after the block was broken, or undefined if empty hand.
itemStackBeforeBreak?
readonlyoptionalitemStackBeforeBreak?:ItemStack
Beta
用于破坏方块前手中的物品堆,如果为空手则为 undefined。
Remarks
The item stack that was used to break the block before the block was broken, or undefined if empty hand.
player
readonlyplayer:Player
Beta
破坏该方块的玩家。
Remarks
Player that broke the block for this event.
