Class EntityItemComponentBeta

If added onto the entity, this indicates that the entity represents a free-floating item in the world. Lets you retrieve the actual item stack contents via the itemStack property.

Hierarchy

Constructors

Properties

Constructors

Properties

itemStack: ItemStack

Remarks

Item stack represented by this entity in the world.

Throws

This property can throw when used.

typeId: string
componentId: "minecraft:item" = 'minecraft:item'

Remarks

Identifier of this component.