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/PlayerBreakBlockAfterEvent.md.

Class: PlayerBreakBlockAfterEvent

event player block

Beta

包含玩家破坏方块后的事件相关信息。

Contains information regarding an event after a player breaks 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


brokenBlockPermutation

readonly brokenBlockPermutation: BlockPermutation

Beta

返回该方块被破坏前的排列信息。

Remarks

Returns permutation information about this block before it was broken.


dimension

readonly dimension: Dimension

Beta

Remarks

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

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

Inherited from

BlockEvent.dimension


itemStackAfterBreak?

readonly optional itemStackAfterBreak?: 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?

readonly optional itemStackBeforeBreak?: 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

readonly player: Player

Beta

破坏该方块的玩家。

Remarks

Player that broke the block for this event.

同领域相关