Traits
VersionInfo
Definition
pub trait VersionInfo: Clone + Send + Sync {
type LoaderType: Clone + Send + Sync + std::fmt::Debug;
fn name(&self) -> &str;
fn loader_version(&self) -> &str;
fn minecraft_version(&self) -> &str;
fn game_dirs(&self) -> &Path;
fn java_dirs(&self) -> &Path;
fn loader(&self) -> &Self::LoaderType;
// Helper methods
fn game_dir_exists(&self) -> bool;
fn java_dir_exists(&self) -> bool;
fn full_identifier(&self) -> String;
fn paths(&self) -> (&Path, &Path);
}Exports
Methods
name() -> &str
loader_version() -> &str
minecraft_version() -> &str
game_dirs() -> &Path
java_dirs() -> &Path
loader() -> &Loader
game_dir_exists() -> bool
java_dir_exists() -> bool
full_identifier() -> String
paths() -> (&Path, &Path)
Usage Example
LoaderExtensions
Definition
Exports
Methods
get_metadata() -> Result<Arc>
get_libraries() -> Result<Arc>
get_main_class() -> Result<Arc>
get_natives() -> Result<Arc>
get_java_version() -> Result<Arc>
get_assets() -> Result<Arc>
Usage Example
Error Handling
Custom Implementations
Related Documentation
Last updated