lighty-launch
Minecraft launch system for LightyLauncher.
Overview
Version: 26.5.1 Part of: LightyLauncher
lighty-launch handles the complete Minecraft launch process, from downloading assets to managing running instances.
Features
- Game Launching - Launch Minecraft with optimized JVM arguments
- Asset Installation - Download and install game assets, libraries, and natives
- Process Management - Manage Minecraft process lifecycle
- Instance Control - Track, monitor, and control running instances
- Console Streaming - Real-time console output via events
- Instance Size Calculation - Calculate disk space usage
- Mod Support - Automatic mod installation and management
Quick Start
[]
= "26.5.1"
Basic Launch
use AppState;
use *;
use JavaDistribution;
async
With Custom JVM Options
use InstanceControl; // Import trait
// Launch with custom JVM settings
instance.launch
.with_jvm_options
.set // Max memory
.set // Initial memory
.done
.run
.await?;
Instance Control
use InstanceControl; // Import trait
// Get running instance PID
if let Some = instance.get_pid
// Calculate instance size
let metadata = instance.get_metadata.await?;
let size = instance.size_of_instance;
println!;
// Delete instance
instance.delete_instance.await?;
Core Components
| Component | Description |
|---|---|
| LaunchBuilder | Fluent API for configuring game launch |
| Installer | Downloads assets, libraries, natives, and mods |
| InstanceControl | Trait for managing running instances |
| Arguments | JVM and game argument generation |
| Console Streaming | Real-time console output (with events feature) |
Documentation
| Guide | Description |
|---|---|
| How to Use | Practical launch guide with examples |
| Overview | Architecture and design |
| Exports | Complete export reference |
| Events | LaunchEvent types |
| Launch Process | Launch workflow details |
| Installation | Asset and library installation |
| Arguments | JVM and game arguments |
| Instance Control | Managing instances |
Related Crates
- lighty-launcher - Main package
- lighty-event - Event system (for LaunchEvent)
- lighty-core - AppState and utilities
- lighty-java - Java runtime management
- lighty-version - VersionBuilder
- lighty-loaders - Loader metadata
- lighty-auth - UserProfile for launching
License
MIT