getPath

List<PositionablegetPath(Positionable position)

Generates a path to the position. This will attempt to generate a path to the closest nearby position to the destination position.

Return

a path to the position, or an empty list if it or a nearby tile is not reachable

Parameters

position

the position