getObject

fun getObject(slot: Int): InventoryObject

Gets the 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.