Skip to content

@minecraft/server


@minecraft/server / BlockComponentEntityEvent

Class: BlockComponentEntityEvent ​

Defined in: @minecraft/server/index.d.ts:4428

Contains information regarding an event sent by an entity to this block in the world.

Extends ​

Properties ​

block ​

readonly block: Block

Defined in: @minecraft/server/index.d.ts:4790

Remarks ​

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

Inherited from ​

BlockEvent.block


blockPermutation ​

readonly blockPermutation: BlockPermutation

Defined in: @minecraft/server/index.d.ts:4436

Remarks ​

Returns permutation information about the block receiving the event.


dimension ​

readonly dimension: Dimension

Defined in: @minecraft/server/index.d.ts:4797

Remarks ​

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

Inherited from ​

BlockEvent.dimension


entitySource ​

readonly entitySource: Entity

Defined in: @minecraft/server/index.d.ts:4442

Remarks ​

The entity that sent the event.


name ​

readonly name: string

Defined in: @minecraft/server/index.d.ts:4448

Remarks ​

Name of the event fired by the entity.