CommandsInstance
此内容尚不支持你的语言。
Defined in: commands.ts:133
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CommandsInstance(
world,resources):CommandsInstance
Defined in: commands.ts:139
Parameters
Section titled “Parameters”resources
Section titled “resources”ResourceStorage
Returns
Section titled “Returns”CommandsInstance
Methods
Section titled “Methods”despawn()
Section titled “despawn()”despawn(
entity):this
Defined in: commands.ts:154
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”this
entity()
Section titled “entity()”entity(
entity):EntityCommands
Defined in: commands.ts:150
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”flush()
Section titled “flush()”flush():
void
Defined in: commands.ts:185
Returns
Section titled “Returns”void
insertResource()
Section titled “insertResource()”insertResource<
T>(resource,value):this
Defined in: commands.ts:159
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”resource
Section titled “resource”ResourceDef<T>
T
Returns
Section titled “Returns”this
queueInsert()
Section titled “queueInsert()”queueInsert(
entity,component,data):void
Defined in: commands.ts:168
Parameters
Section titled “Parameters”entity
Section titled “entity”number
component
Section titled “component”unknown
Returns
Section titled “Returns”void
queueRemove()
Section titled “queueRemove()”queueRemove(
entity,component):void
Defined in: commands.ts:172
Parameters
Section titled “Parameters”entity
Section titled “entity”number
component
Section titled “component”Returns
Section titled “Returns”void
spawn()
Section titled “spawn()”spawn(
name?):EntityCommands
Defined in: commands.ts:144
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”spawnImmediate()
Section titled “spawnImmediate()”spawnImmediate(
components,entityRef,name?):void
Defined in: commands.ts:176
Parameters
Section titled “Parameters”components
Section titled “components”SpawnComponentEntry[]
entityRef
Section titled “entityRef”entity
Section titled “entity”number
string
Returns
Section titled “Returns”void