Skip to main content

hexomc_lib/
lib.rs

1pub mod assets;
2pub mod auth;
3pub mod download;
4pub mod error;
5pub mod install;
6pub mod java;
7pub mod launch;
8pub mod modpack;
9pub mod mods;
10pub mod version;
11
12pub use error::{HexoError, Result};
13
14pub use version::manifest::{
15    fetch_version_manifest, fetch_version_json,
16    VersionEntry, VersionManifest, VersionJson,
17};
18
19pub use download::{download_file, download_file_with_progress, download_batch, DownloadTask};
20
21pub use install::vanilla::{install_vanilla, InstanceConfig, LoaderType, LibEntry, NativeEntry};
22pub use install::fabric::{install_fabric, get_fabric_loader_versions};
23pub use install::forge::{install_forge, get_forge_versions};
24pub use install::neoforge::{install_neoforge, get_neoforge_versions};
25
26pub use install::loader::{
27    LoaderInstaller, ProgressFn, no_progress,
28    VanillaInstaller, FabricInstaller, ForgeInstaller, NeoForgeInstaller,
29    create_loader, install_with_loader,
30};
31
32pub use java::detector::{find_java, JavaInfo};
33pub use java::installer::{download_java, download_java_with_progress};
34
35pub use launch::launcher::{launch, launch_with_channel, launch_with_output, LaunchOptions};
36pub use launch::output::{no_output, GameProcess, OutputFn, OutputKind, OutputLine};
37
38pub use auth::microsoft::{
39    request_device_code, poll_device_code, refresh_token,
40    AuthResult, DeviceCodeInfo,
41};
42
43pub use mods::detector::{detect_mods, ModInfo, ModLoader};
44pub use mods::curseforge::CurseForgeClient;
45pub use mods::modrinth::{ModrinthClient, MrProject, MrVersion};
46pub use mods::updater::{check_updates, update_mod, ModUpdate, UpdateSource};
47
48pub use modpack::{
49    detect_modpack_format, install_modpack, install_modpack_files, resolve_forge_version,
50    ManualDownload, ModpackFormat, ModpackInfo, ModpackInstallResult,
51};
52pub use modpack::mrpack::{install_mrpack, install_mrpack_files, read_mrpack_index, MrpackIndex};
53pub use modpack::cfpack::{install_cfpack, install_cfpack_files, read_cf_manifest, CfManifest};
54pub use modpack::ftbpack::{
55    fetch_ftb_version_manifest, get_ftb_pack, install_ftb_pack, install_ftb_pack_files,
56    FtbCurseForgeRef, FtbFile, FtbPack, FtbTarget, FtbVersion, FtbVersionManifest,
57};
58pub use modpack::atpack::{
59    fetch_atlauncher_pack_config, get_atlauncher_pack_versions, install_atlauncher_pack,
60    install_atlauncher_pack_files,
61    AtPackConfig, AtPackVersion,
62};
63
64pub use assets::detector::{
65    detect_resource_packs, detect_shader_packs, detect_maps,
66    ResourcePack, ShaderPack, WorldMap,
67};