@minecraft
    正在准备搜索索引...

    类 ItemComponentHitEntityEvent

    Contains information regarding when an item is used to hit an entity.

    索引

    属性

    attackingEntity: Entity

    The attacking entity.

    hadEffect: boolean

    Whether the hit landed or had any effect.

    hitEntity: Entity

    The entity being hit.

    itemStack?: ItemStack

    The item stack used to hit the entity.