Skip to content

inventory

slot

inventory.slot(int slot) : string
获取某个物品slot的名字

item

inventory.item(int slot) : ItemStack
获取某个物品slot的ItemStack

drop

inventory.drop(int slot)
丢弃某个slot的物品

swap

inventory.swap(int slot, int slot2)
互换两个slot的物品

click

inventory.click(int slot)
点击某个slot的物品