> 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/blockhitresult.md).

# BlockHitResult

A ray that hit a block face.

### Extends

* [`HitResult`](/newgen/api/net/minecraft/world/phys/hitresult.md)

### Constructors

#### Constructor

> **new BlockHitResult**(`location`, `direction`, `pos`, `inside`): `BlockHitResult`

A hit on a block face, e.g. to place against.

**Parameters**

**location**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The exact point that was hit.

**direction**

[`Direction`](/newgen/api/enum_types/direction.md)

The face that was hit.

**pos**

[`BlockPos`](/newgen/api/net/minecraft/core/blockpos.md)

The block that was hit.

**inside**

`boolean`

Whether the point is inside the block.

**Returns**

`BlockHitResult`

**Overrides**

`HitResult.constructor`

### Properties

#### blockPos

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

The block that was hit.

***

#### direction

> `readonly` **direction**: [`Direction`](/newgen/api/enum_types/direction.md)

The face that was hit.

***

#### inside

> `readonly` **inside**: `boolean`

Whether the ray started inside the block.

***

#### location

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

The exact point that was hit.

**Inherited from**

[`HitResult`](/newgen/api/net/minecraft/world/phys/hitresult.md).[`location`](/newgen/api/net/minecraft/world/phys/hitresult.md#location)

***

#### type

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

What was hit.

**Inherited from**

[`HitResult`](/newgen/api/net/minecraft/world/phys/hitresult.md).[`type`](/newgen/api/net/minecraft/world/phys/hitresult.md#type)
