cobble-core 1.2.0

Library for managing, installing and launching Minecraft instances and more.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::minecraft::models::VersionData;
use std::path::{Path, PathBuf};

pub fn client_jar_path(version_data: &VersionData, minecraft_path: impl AsRef<Path>) -> PathBuf {
    let mut minecraft_path = PathBuf::from(minecraft_path.as_ref());
    minecraft_path.push("bin");
    minecraft_path.push(format!("minecraft-{}-client.jar", &version_data.id));

    minecraft_path
}