The PlayerCursorInventoryComponent class in @minecraft/server.
Class in @minecraft/server
Extends EntityComponent
import { PlayerCursorInventoryComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”read-only optional
readonly item?: ItemStack;Types
componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:cursor_inventory';Methods
Section titled “Methods”clear(): void;