<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLattice](./server.chunklattice.md) &gt; [getOrCreateChunk](./server.chunklattice.getorcreatechunk.md)

## ChunkLattice.getOrCreateChunk() method

Get the chunk for a given global coordinate.

**Signature:**

```typescript
getOrCreateChunk(globalCoordinate: Vector3Like): Chunk;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

globalCoordinate


</td><td>

[Vector3Like](./server.vector3like.md)


</td><td>

The global coordinate of the chunk to get.


</td></tr>
</tbody></table>
**Returns:**

[Chunk](./server.chunk.md)

The chunk at the given global coordinate or undefined if not found.

