手冊:Player.setSelectedSlotId

出自Minecraft基岩版开发Wiki

語法[編輯]

Player.setSelectedSlotId(par1int);

參數[編輯]

參數一

int型別 背包的格子id

效果[編輯]

設定玩家正在使用的物品在背包的格子。


Template:ModPE