手册:Player.getInventorySlotCount

来自Minecraft基岩版开发Wiki

语法[编辑]

Player.getInventorySlotCount(par1int);

参数[编辑]

参数一
int类型 背包的格子id
返回值
int类型 物品数量

效果[编辑]

获取玩家背包的物品数量

Template:ModPE