setTeleportOnFail

public abstract AbstractWanderBackToPoint setTeleportOnFail(boolean teleportOnFail)

Sets if the entity will instantly teleport when it fails to find a valid path back to the point defined. Failure is defined by either timing the maximum duration out or pathfinding being unable to find a valid path for the entity.

Return

Instance for builder pattern

Parameters

teleportOnFail

If it should teleport