跳转至

PlayerCursorInventoryComponent

文档版本:1.21.60.21

PlayerCursorInventoryComponent类,扩展自EntityComponent。script_api.minecraft/server.playercursorinventorycomponent.description

常量

componentId
static read-only componentId = "minecraft:cursor_inventory";

属性

item
read-only item: ItemStack | undefined;

方法

clear

script_api.minecraft/server.playercursorinventorycomponent.clear.description

clear(): void