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