hytopia
Version:
The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.
56 lines (27 loc) • 800 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [server](./server.md) > [ChunkLattice](./server.chunklattice.md) > [getBlockTypeCount](./server.chunklattice.getblocktypecount.md)
## ChunkLattice.getBlockTypeCount() method
Get the number of blocks of a specific block type in the lattice.
**Signature:**
```typescript
getBlockTypeCount(blockTypeId: number): number;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
blockTypeId
</td><td>
number
</td><td>
The block type id to get the count of.
</td></tr>
</tbody></table>
**Returns:**
number
The number of blocks of the block type.