hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
96 lines (43 loc) • 1.37 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ChunkEventPayloads](./server.chunkeventpayloads.md)
## ChunkEventPayloads interface
Event payloads for Chunk emitted events.
**Signature:**
```typescript
export interface ChunkEventPayloads
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
["CHUNK.DESPAWN"](./server.chunkeventpayloads._chunk.despawn_.md)
</td><td>
</td><td>
{ chunk: [Chunk](./server.chunk.md)<!-- -->; }
</td><td>
Emitted when a chunk is despawned.
</td></tr>
<tr><td>
["CHUNK.SET\_BLOCK"](./server.chunkeventpayloads._chunk.set_block_.md)
</td><td>
</td><td>
{ chunk: [Chunk](./server.chunk.md)<!-- -->; globalCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; localCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; blockTypeId: number; }
</td><td>
Emitted when a block is set in a chunk.
</td></tr>
<tr><td>
["CHUNK.SPAWN"](./server.chunkeventpayloads._chunk.spawn_.md)
</td><td>
</td><td>
{ chunk: [Chunk](./server.chunk.md)<!-- -->; }
</td><td>
Emitted when a chunk is spawned.
</td></tr>
</tbody></table>