For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EntityTypes.md.

Class: EntityTypes

entity

Beta

用于访问世界中当前可用的所有实体类型。

Used for accessing all entity types currently available for use within the world.

Methods

get()

static get<T>(identifier): EntityType | undefined

Beta

Type Parameters

T

T = never

Parameters

identifier

EntityIdentifierType<NoInfer<T>>

Returns

EntityType | undefined

Remarks

使用字符串标识符检索实体类型。

Retrieves an entity type using a string-based identifier.


getAll()

static getAll(): EntityType[]

Beta

Returns

EntityType[]

Remarks

检索此世界中的所有实体类型集合。

Retrieves a set of all entity types within this world.

同领域相关