Edit

Share via


EntityTypes Class

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

Methods

get

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

Retrieves an entity type using a string-based identifier.

Parameters

  • identifier: EntityIdentifierType<NoInfer<T>>

Returns EntityType | undefined

Caution

This function is still in pre-release. Its signature may change or it may be removed in future releases.

getAll

static getAll(): EntityType[]

Retrieves a set of all entity types within this world.

Returns EntityType[]

get

static "get"(identifier: string): EntityType | undefined

Retrieves an entity type using a string-based identifier.

Parameters

  • identifier: string

Returns EntityType | undefined