手冊:Player.getInventorySlotCount

出自Minecraft基岩版开发Wiki

語法[編輯]

Player.getInventorySlotCount(par1int);

參數[編輯]

參數一
int型別 背包的格子id
傳回值
int型別 物品數量

效果[編輯]

取得玩家背包的物品數量

Template:ModPE