Skip to content

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 ​

BrainItem

count ​

number

options? ​

TestEntityOptions = {}

Returns ​

TestItemEntity

Overrides ​

TestEntity.constructor

Properties ​

alive ​

alive: boolean

Defined in: testWorld.ts:69

Implementation of ​

BrainItemEntity.alive

Inherited from ​

TestEntity.alive


armorItems ​

armorItems: BrainItem[]

Defined in: testWorld.ts:77

Implementation of ​

BrainItemEntity.armorItems

Inherited from ​

TestEntity.armorItems


baby ​

baby: boolean

Defined in: testWorld.ts:70

Implementation of ​

BrainItemEntity.baby

Inherited from ​

TestEntity.baby


conditions ​

conditions: Set<string>

Defined in: testWorld.ts:74

See EntityConditions.

Implementation of ​

BrainItemEntity.conditions

Inherited from ​

TestEntity.conditions


count ​

readonly count: number

Defined in: testWorld.ts:107

Implementation of ​

BrainItemEntity.count


creative ​

creative: boolean

Defined in: testWorld.ts:72

Inherited from ​

TestEntity.creative


dimensions ​

readonly dimensions: EntityDimensions

Defined in: testWorld.ts:68

Its Java collision box, when the host can provide it.

Implementation of ​

BrainItemEntity.dimensions

Inherited from ​

TestEntity.dimensions


id ​

readonly id: string

Defined in: testWorld.ts:65

A stable identity, used wherever Java stores a UUID in a memory.

Implementation of ​

BrainItemEntity.id

Inherited from ​

TestEntity.id


item ​

readonly item: BrainItem

Defined in: testWorld.ts:106

Implementation of ​

BrainItemEntity.item


mainHandItem ​

mainHandItem: BrainItem | undefined

Defined in: testWorld.ts:75

Implementation of ​

BrainItemEntity.mainHandItem

Inherited from ​

TestEntity.mainHandItem


offHandItem ​

offHandItem: BrainItem | undefined

Defined in: testWorld.ts:76

Implementation of ​

BrainItemEntity.offHandItem

Inherited from ​

TestEntity.offHandItem


position ​

position: Vec3

Defined in: testWorld.ts:67

Implementation of ​

BrainItemEntity.position

Inherited from ​

TestEntity.position


spectator ​

spectator: boolean

Defined in: testWorld.ts:71

Implementation of ​

BrainItemEntity.spectator

Inherited from ​

TestEntity.spectator


type ​

readonly type: string

Defined in: testWorld.ts:66

The entity type id, such as minecraft:piglin.

Implementation of ​

BrainItemEntity.type

Inherited from ​

TestEntity.type


typeTags ​

typeTags: Set<string>

Defined in: testWorld.ts:73

The entity type tags, such as minecraft:axolotl_hunt_targets.

Implementation of ​

BrainItemEntity.typeTags

Inherited from ​

TestEntity.typeTags

Methods ​

canBeTargeted() ​

canBeTargeted(): boolean

Defined in: testWorld.ts:96

Whether combat AI may choose this test entity as a target.

Returns ​

boolean

Implementation of ​

BrainItemEntity.canBeTargeted

Inherited from ​

TestEntity.canBeTargeted