ItemInteractEvent
ItemInteract event.
Type
Properties
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| source | Player | Entity | undefined | ❌ | null | Source of event. |
| item | ItemStack | ❌ | null | Item data. |
| block | Block | ❌ | null | Block data. |
| blockLocation | BlockLocation | ❌ | null | Block location data. |
| direction | number | ❌ | null | Direction. |
| faceLocationX | number | ❌ | null | Player facing direction X axis. |
| faceLocationY | number | ❌ | null | Player facing direction Y axis. |
| cancel | CallableFunction | ❌ | null | Function to cancel event. |