Skip to main content

Class: ItemComponentUseOnEvent

Contains information regarding the use of an item on a block via a component.

Extends

Constructors

new ItemComponentUseOnEvent()

private new ItemComponentUseOnEvent(): ItemComponentUseOnEvent

Returns

ItemComponentUseOnEvent

Overrides

ItemUseOnEvent . constructor

Properties

block

readonly block: Block

Remarks

The block impacted by this event.

Inherited from

ItemUseOnEvent . block


blockFace

readonly blockFace: Direction

Remarks

The face of the block that the item was used on.

Inherited from

ItemUseOnEvent . blockFace


faceLocation

readonly faceLocation: Vector3

Remarks

Location relative to the bottom north-west corner of the block that the item was used on.

Inherited from

ItemUseOnEvent . faceLocation


itemStack

readonly itemStack: ItemStack

Remarks

The item stack used on the block.

Inherited from

ItemUseOnEvent . itemStack


source

readonly source: Entity

Remarks

The entity that used the item on the block.


usedOnBlockPermutation

readonly usedOnBlockPermutation: BlockPermutation

Remarks

The block permutation that the item was used on.