shift

open override fun shift(direction: ShiftDirection, amount: Int, wrap: Boolean)

Shifts the items inside the row to the given direction. Because items can also be set at a negative slot or slot larger than 9, the items next to it will come. If wrap is enabled, it will wrap the last items back to the beginning.

Parameters

direction

of the shift

amount

how many times

wrap

whether to wrap the items or not