UNPKG

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
<!-- 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; [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.