Skip to main content

Crate lighty_launcher

Crate lighty_launcher 

Source
Expand description

LightyLauncher - A modern Minecraft launcher library.

use lighty_launcher::prelude::*;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    AppState::init("MyLauncher")?;
    let mut auth = auth::OfflineAuth::new("Player");
    let profile = auth.authenticate().await?;
    let mut version = version::VersionBuilder::new(
        "my-instance", Loader::Vanilla, "", "1.21.1",
    );
    version.launch(&profile, JavaDistribution::Temurin).run().await?;
    Ok(())
}

Modules§

auth
Authentication providers and utilities.
core
Core utilities and system operations.
java
Java runtime management.
launch
Game launching and installation.
loaders
Minecraft mod loaders and version metadata.
macros
Utility macros — conditional tracing + filesystem helpers.
prelude
Convenient re-exports of most commonly used types.
version
Version builders for game instances.

Structs§

LightyVersionBuilder
Builder for LightyUpdater-managed instances.
UserProfile
User profile returned after successful authentication.
VersionBuilder
Configures a Minecraft instance: name, loader, versions, and on-disk paths.

Enums§

JavaDistribution
Available Java distributions
Loader
The supported Minecraft mod loaders.

Traits§

Authenticator
Core authentication trait implemented by every provider.
Launch
Extension trait that adds Self::launch to any installable instance.