UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

54 lines (26 loc) 824 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [BlockType](./server.blocktype.md) &gt; [(constructor)](./server.blocktype._constructor_.md) ## BlockType.(constructor) Creates a new block type instance. Use for: defining a block type before registering it with a `BlockTypeRegistry`<!-- -->. **Signature:** ```typescript constructor(options?: BlockTypeOptions); ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> options </td><td> [BlockTypeOptions](./server.blocktypeoptions.md) </td><td> _(Optional)_ The options for the block type. \*\*Category:\*\* Blocks </td></tr> </tbody></table>