> 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/api/net/minecraft/util/raytraceresult.md).

# RaytraceResult

Represents the result of a raytrace.

### Properties

#### blockPos

> `readonly` **blockPos**: [`BlockPos`](/api/net/minecraft/util/blockpos.md)

The block position the raytrace might have hit.

**Remarks**

May be null if the raytrace didn't hit a block.

***

#### entityHit

> `readonly` **entityHit**: [`Entity`](/api/net/minecraft/entity/entity.md)

The entity the raytrace might have hit.

**Remarks**

May be null if the raytrace didn't hit an entity.

***

#### hitVec

> `readonly` **hitVec**: [`Vec3`](/api/net/minecraft/util/vec3.md)

The hit vector of the raytrace, can be null.

***

#### sideHit

> `readonly` **sideHit**: `string`

The side of the block the raytrace might have hit. Will be a EnumFacing.

**Remarks**

May be null if the raytrace didn't hit a block.

### Methods

#### getHitType()

> **getHitType**(): [`HitType`](/api/enum_types/hittype.md)

**Returns**

[`HitType`](/api/enum_types/hittype.md)

The type of hit that was made. One of: BLOCK, ENTITY, MISS.
