<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Block](./server.block.md)

## Block class

Represents a block in a world.

**Signature:**

```typescript
export default class Block 
```

## Remarks

Instances of this class are created internally but made publicly available through various public facing API methods.

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `Block` class.

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[blockType](./server.block.blocktype.md)


</td><td>

`readonly`


</td><td>

[BlockType](./server.blocktype.md)


</td><td>

The block type of the block.


</td></tr>
<tr><td>

[globalCoordinate](./server.block.globalcoordinate.md)


</td><td>

`readonly`


</td><td>

[Vector3Like](./server.vector3like.md)


</td><td>

The global coordinate of the block.


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Modifiers


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[getNeighborGlobalCoordinateFromHitPoint(hitPoint)](./server.block.getneighborglobalcoordinatefromhitpoint.md)


</td><td>


</td><td>

Gets the most adjacent neighbor global coordinate of this block based on a relative hit point, typically from a raycast.


</td></tr>
</tbody></table>
