getObject

fun getObject(slot: Int): Long

Gets the bitpacked obj in the slot provided.

Return

the inventory object that's in that slot, or InventoryObject.NULL if there's no object.

Parameters

slot

the slot in the inventory.

Throws

if the slot is outside the inventory's boundaries.