/** * For future maintainers: *
* This class is a copy of the original class, but overrides * the a(int) method (originally called createPathfinder) * to allow for a custom PathfinderAbstract implementation. *
* The custom PathfinderAbstract implementation is used * to detect and avoid client-sided blocks. */ public class CustomNavigation extends GroundPathNavigation { public CustomNavigation(ZombiesPlugin main, Mob var0, Level var1) { super(var0, var1); // createPathFinder is called here ((CustomPathfinderNormal) this.nodeEvaluator).setValues(main, var0); } @Override protected PathFinder createPathFinder(int var0) { // createPathfinder this.nodeEvaluator = new CustomPathfinderNormal(); this.nodeEvaluator.setCanFloat(true); return new PathFinder(this.nodeEvaluator, var0); } } c