atY

open override fun atY(y: Int): Pos3i(source)

Keeps the x and z coordinate, but puts this position into 3-dimensional space (Pos3Dimensional) at the given height y.