private boolean pathToDest(final Player player,final StendhalRPZone zone,final int x,final int y,final PassiveEntity entity){
  final List<Node> path=Path.searchPath(entity,zone,player.getX(),player.getY(),new Rectangle(x,y,1,1),64,false);
  if (path.isEmpty()) {
    player.sendPrivateText("There is no easy path to that place.");
  }
  return !path.isEmpty();
}

private boolean pathToDest ( final Player player , final StendhalRPZone zone , final int x , final int y , final PassiveEntity entity ) { final List < Node > path = Path . searchPath ( entity , zone , player . getX ( ) , player . getY ( ) , new Rectangle ( x , y , 1 , 1 ) , 64 , false ) ; if ( path . isEmpty ( ) ) { player . sendPrivateText ( "There is no easy path to that place." ) ; } return ! path . isEmpty ( ) ; }
checks whether there is a path from player to destination .
