withRelativeY

abstract fun withRelativeY(delta: Int): Position

Creates a new Position object representing a position on the same x, but with a y offset by a supplied value. Calling this method with delta 0 will returnThis this, calling it with a positive delta will returnThis a grid position <code>delta</code> number of y to the down and for negative numbers the same up.

Sources

(source)
Link copied to clipboard