API reference / @jsprismarine/entity-brains / TestEntity
Class: TestEntity
Defined in: testWorld.ts:64
A plain entity the test world hands to sensors and behaviors.
Extended by
Implements
Constructors
Constructor
new TestEntity(
type,options?):TestEntity
Defined in: testWorld.ts:79
Parameters
type
string
options?
TestEntityOptions = {}
Returns
TestEntity
Properties
alive
alive:
boolean
Defined in: testWorld.ts:69
Implementation of
armorItems
armorItems:
BrainItem[]
Defined in: testWorld.ts:77
Implementation of
baby
baby:
boolean
Defined in: testWorld.ts:70
Implementation of
conditions
conditions:
Set<string>
Defined in: testWorld.ts:74
See EntityConditions.
Implementation of
creative
creative:
boolean
Defined in: testWorld.ts:72
dimensions
readonlydimensions:EntityDimensions
Defined in: testWorld.ts:68
Its Java collision box, when the host can provide it.
Implementation of
id
readonlyid:string
Defined in: testWorld.ts:65
A stable identity, used wherever Java stores a UUID in a memory.
Implementation of
mainHandItem
mainHandItem:
BrainItem|undefined
Defined in: testWorld.ts:75
Implementation of
offHandItem
offHandItem:
BrainItem|undefined
Defined in: testWorld.ts:76
Implementation of
position
position:
Vec3
Defined in: testWorld.ts:67
Implementation of
spectator
spectator:
boolean
Defined in: testWorld.ts:71
Implementation of
type
readonlytype:string
Defined in: testWorld.ts:66
The entity type id, such as minecraft:piglin.
Implementation of
typeTags
typeTags:
Set<string>
Defined in: testWorld.ts:73
The entity type tags, such as minecraft:axolotl_hunt_targets.
Implementation of
Methods
canBeTargeted()
canBeTargeted():
boolean
Defined in: testWorld.ts:96
Whether combat AI may choose this test entity as a target.
Returns
boolean