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

Class: BlockComponentPlayerInteractEvent

event player block component

Beta

包含有关特定方块被交互的信息。

Contains information regarding a specific block being interacted with.

Extends

Properties

block

readonly block: Block

Beta

Remarks

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

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

Inherited from

BlockEvent.block


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 block face that was interacted with.


faceLocation?

readonly optional faceLocation?: Vector3

Beta

Remarks

玩家交互的位置,相对于方块的西北下角。

Location relative to the bottom north-west corner of the block that the player interacted with.


player?

readonly optional player?: Player

Beta

Remarks

与此方块交互的玩家。

The player that interacted with this block.

同领域相关