drag

fun drag(item: Item, index: Int): Boolean

Drags the given item to the given index

Return

True if the item is at the index or the drag was successful, false otherwise

Parameters

item

Item to be dragged

index

Index to drag the item to

Throws

if index is below 0 or above (Constants.INVENTORY_SIZE-1)