The BlockInventoryComponent class in @minecraft/server.
Class in @minecraft/server
Extends BlockComponent
import { BlockInventoryComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”container
Section titled “container”read-only optional
readonly container?: Container;Types
componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:inventory';Inherited
Section titled “Inherited”From BlockComponent: block