walkTo

open fun walkTo(target: Positionable): Boolean

Walks to the target location, if it is in the local area

Return

true if walked successfully, false otherwise

Parameters

target

the target tile


open fun walkTo(target: Positionable, walkingCondition: Supplier<WalkState>): Boolean

Walks to the target location, if it is in the local area

Return

true if walked successfully, false otherwise

Parameters

target

the target tile

walkingCondition

the walking condition to break out of walking early - this is checked often while walking