手册:Entity.getOffhandSlotCount

来自Minecraft基岩版开发Wiki

语法[编辑]

Entity.getOffhandSlotCount(par1Object);

参数[编辑]

参数一

Object类型 实体

返回值

int类型 物品数量

效果[编辑]

获取实体左手所持物品的数量。

Template:ModPE