use of pneumaticCraft.common.ai.EntityPathNavigateDrone in project PneumaticCraft by MineMaarten.
the class CoordTrackUpgradeHandler method getDronePath.
public static PathEntity getDronePath(EntityPlayer player, int x, int y, int z) {
World worldObj = player.worldObj;
EntityDrone drone = new EntityDrone(worldObj);
drone.setPosition(player.posX, player.posY - 2, player.posZ);
return new EntityPathNavigateDrone(drone, worldObj).getEntityPathToXYZ(drone, x, y, z, SEARCH_RANGE, true, true, false, true);
}
Aggregations