UNPKG

hytopia

Version:

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

20 lines (11 loc) 708 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [EntityOptions](./server.entityoptions.md) ## EntityOptions type The options for creating an `Entity` instance. Use for: constructing an entity; choose `BlockEntityOptions` or `ModelEntityOptions`<!-- -->. Do NOT use for: mutating entity state after spawn; use entity setters and methods. \*\*Category:\*\* Entities **Signature:** ```typescript export type EntityOptions = BlockEntityOptions | ModelEntityOptions; ``` **References:** [BlockEntityOptions](./server.blockentityoptions.md)<!-- -->, [ModelEntityOptions](./server.modelentityoptions.md)