Trait scl_core::download::forge::ForgeDownloadExt
source · pub trait ForgeDownloadExt: Sync {
// Required methods
fn get_avaliable_installers<'life0, 'life1, 'async_trait>(
&'life0 self,
vanilla_version: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ForgeVersionsData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn install_forge_pre<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version_id: &'life1 str,
vanilla_version: &'life2 str,
forge_version: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn install_forge_post<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
version_id: &'life2 str,
forge_version: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn modify_forge_installer<'life0, 'life1, 'async_trait>(
&'life0 self,
from_reader: File,
to_writer: File,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Forge 模组加载器的安装特质
可以通过引入本特质和使用 crate::download::Downloader
来安装模组加载器
Required Methods§
sourcefn get_avaliable_installers<'life0, 'life1, 'async_trait>(
&'life0 self,
vanilla_version: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<ForgeVersionsData>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_avaliable_installers<'life0, 'life1, 'async_trait>( &'life0 self, vanilla_version: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<ForgeVersionsData>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
根据纯净版本号获取当前可用的所有 Forge 版本
sourcefn install_forge_pre<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version_id: &'life1 str,
vanilla_version: &'life2 str,
forge_version: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn install_forge_pre<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, version_id: &'life1 str, vanilla_version: &'life2 str, forge_version: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,
运行安装 Forge 模组加载器的预安装步骤
一般是下载各种库和依赖
sourcefn install_forge_post<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
version_id: &'life2 str,
forge_version: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn install_forge_post<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, version_name: &'life1 str, version_id: &'life2 str, forge_version: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,
运行安装 Forge 模组加载器的后安装步骤
通常是修改安装器信息,然后执行安装器完成最后的安装步骤