walkTo

static boolean walkTo(Positionable target)

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

Return

true if walked successfully, false otherwise

Parameters

target

the target tile

static boolean walkTo(Positionable target, Supplier<WalkState> walkingCondition)

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