> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/world/phys/hitresult.md).

# HitResult

What a ray hit. Check type, or use instanceof BlockHitResult / EntityHitResult.

### Extended by

* [`BlockHitResult`](/newgen/api/net/minecraft/world/phys/blockhitresult.md)
* [`EntityHitResult`](/newgen/api/net/minecraft/world/phys/entityhitresult.md)

### Properties

#### location

> `readonly` **location**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The exact point that was hit.

***

#### type

> `readonly` **type**: [`HitType`](/newgen/api/enum_types/hittype.md)

What was hit.
