Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

How to use this API

Yannick Lamprecht edited this page Aug 18, 2017 · 2 revisions
        Player player = p /**/;
        Zombie zombie = player.getWorld().spawn(player.getLocation(), Zombie.class);
        Insentient insentient = PathfinderGoalAPI.getAPI().getPathfindeGoalEntity(zombie);
        insentient.getGoalSelector().addPathfinderGoal(0,
                new PathfinderGoalFollowEntity(insentient, player, 10, 1));

Clone this wiki locally