# RaytraceResult

Represents the result of a raytrace.

### Properties

#### blockPos

> `readonly` **blockPos**: [`BlockPos`](https://scripting.breeze.rip/api/net/minecraft/util/blockpos)

The block position the raytrace might have hit.

**Remarks**

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

***

#### entityHit

> `readonly` **entityHit**: [`Entity`](https://scripting.breeze.rip/api/net/minecraft/entity/entity)

The entity the raytrace might have hit.

**Remarks**

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

***

#### hitVec

> `readonly` **hitVec**: [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

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`](https://scripting.breeze.rip/api/enum_types/hittype)

**Returns**

[`HitType`](https://scripting.breeze.rip/api/enum_types/hittype)

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