pub struct FabricMC { /* private fields */ }Implementations§
Source§impl FabricMC
impl FabricMC
pub fn new(variant: FabricVariant) -> Self
pub fn loader_type(&self) -> LoaderType
Sourcepub async fn download_json(
&self,
mc_version: &str,
build: &str,
client: &Client,
) -> Result<FabricJson, LoaderError>
pub async fn download_json( &self, mc_version: &str, build: &str, client: &Client, ) -> Result<FabricJson, LoaderError>
Fetch the Fabric/LegacyFabric loader profile JSON for the given Minecraft version.
build can be "latest", "recommended" (treated same as latest for Fabric),
or an exact version string.
Sourcepub async fn download_libraries(
&self,
options: &LaunchOptions,
fabric_json: &FabricJson,
_client: &Client,
event_tx: &Sender<LaunchEvent>,
) -> Result<Vec<AssetItem>, LoaderError>
pub async fn download_libraries( &self, options: &LaunchOptions, fabric_json: &FabricJson, _client: &Client, event_tx: &Sender<LaunchEvent>, ) -> Result<Vec<AssetItem>, LoaderError>
Download any libraries from fabric_json that are not yet on disk.
Emits LaunchEvent::Check for each library processed.
Returns Vec<AssetItem> covering every library (for bundle-integrity tracking).
Trait Implementations§
Source§impl ModLoader for FabricMC
impl ModLoader for FabricMC
fn install<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
options: &'life1 LaunchOptions,
input: &'life2 LoaderInstallInput,
client: &'life3 Client,
event_tx: &'life4 Sender<LaunchEvent>,
) -> Pin<Box<dyn Future<Output = Result<LoaderResult, LoaderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Auto Trait Implementations§
impl Freeze for FabricMC
impl RefUnwindSafe for FabricMC
impl Send for FabricMC
impl Sync for FabricMC
impl Unpin for FabricMC
impl UnsafeUnpin for FabricMC
impl UnwindSafe for FabricMC
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more