itemAt

fun itemAt(index: Int): Item

Gives you the item at a certain index.

Return

the item at the index. If the item index is greater than INVENTORY_SIZE, returns a Nil item.

Parameters

index

range is 0-27.

fun itemAt(row: Int, column: Int): Item

Gives you an item at a certain position.

Return

the item at the index. If the item index is greater than INVENTORY_SIZE, returns a Nil item.

Parameters

row

the row position for the inventory item (0-7)

column

the column position for the inventory item. (0-3)