@minecraft/server / InvalidEntityError
Class: InvalidEntityError ​
Defined in: @minecraft/server/index.d.ts:25400
The error called when an entity is invalid. This can occur when accessing components on a removed entity.
Extends ​
Error
Properties ​
cause? ​
optionalcause?:unknown
Defined in: typescript/lib/lib.es2022.error.d.ts:24
Inherited from ​
Error.cause
id ​
readonlyid:string
Defined in: @minecraft/server/index.d.ts:25409
Remarks ​
The id of the entity that is now invalid.
This property can be read in early-execution mode.
message ​
message:
string
Defined in: typescript/lib/lib.es5.d.ts:1075
Inherited from ​
Error.message
name ​
name:
string
Defined in: typescript/lib/lib.es5.d.ts:1074
Inherited from ​
Error.name
stack? ​
optionalstack?:string
Defined in: typescript/lib/lib.es5.d.ts:1076
Inherited from ​
Error.stack
type ​
readonlytype:string
Defined in: @minecraft/server/index.d.ts:25417
Remarks ​
The type of the entity that is now invalid.
This property can be read in early-execution mode.