Class: EntityTypes
entityBeta
用于访问世界中当前可用的所有实体类型。
Used for accessing all entity types currently available for use within the world.
Methods
get()
staticget<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()
staticgetAll():EntityType[]
Beta
Returns
Remarks
检索此世界中的所有实体类型集合。
Retrieves a set of all entity types within this world.
