The ItemComponentHitEntityEvent class in @minecraft/server.
Class in @minecraft/server
import { ItemComponentHitEntityEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”attackingEntity
Section titled “attackingEntity”read-only
readonly attackingEntity: Entity;Types
hadEffect
Section titled “hadEffect”read-only
readonly hadEffect: boolean;hitEntity
Section titled “hitEntity”read-only
readonly hitEntity: Entity;Types
itemStack
Section titled “itemStack”read-only optional
readonly itemStack?: ItemStack;Types