pub trait OptifineDownloadExt: Sync {
    // Required methods
    fn get_avaliable_installers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        vanilla_version: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OptifineVersionMeta>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn download_optifine<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        vanilla_version: &'life1 str,
        optifine_type: &'life2 str,
        optifine_patch: &'life3 str,
        dest_path: &'life4 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,
             'life4: 'async_trait;
    fn install_optifine<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        version_name: &'life1 str,
        vanilla_version: &'life2 str,
        optifine_type: &'life3 str,
        optifine_patch: &'life4 str,
        as_mod: bool
    ) -> 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,
             'life4: 'async_trait;
}
Expand description

一个用于下载 Optifine 模组下载安装的扩展特质,可以使用 crate::download::Downloader 来安装

Required Methods§

source

fn get_avaliable_installers<'life0, 'life1, 'async_trait>( &'life0 self, vanilla_version: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<OptifineVersionMeta>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

根据纯净版本号获取当前可用的所有 Optifine 版本

source

fn download_optifine<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, vanilla_version: &'life1 str, optifine_type: &'life2 str, optifine_patch: &'life3 str, dest_path: &'life4 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, 'life4: 'async_trait,

下载 Optifine 版本

source

fn install_optifine<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, version_name: &'life1 str, vanilla_version: &'life2 str, optifine_type: &'life3 str, optifine_patch: &'life4 str, as_mod: bool ) -> 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, 'life4: 'async_trait,

安装 Optifine 版本

Implementors§