Beta
Creates virtual containers: containers that only exist in memory and belong to the script that created them.
export class VirtualContainerManager { private constructor(); create(options: VirtualContainerOptions): VirtualContainer;} Copy
export class VirtualContainerManager { private constructor(); create(options: VirtualContainerOptions): VirtualContainer;}
Private
The number of slots and the title of the container.
The new container.
Creates a new, empty virtual container.
This function can't be called in restricted-execution mode.
Throws if the size is not between 1 and 54, or if the title is longer than 256 bytes.
minecraftcommon.PropertyOutOfBoundsError
This function can't be called in early-execution mode.
Creates virtual containers: containers that only exist in memory and belong to the script that created them.
Source