Skip to main content

Arguments

Trait Arguments 

Source
pub trait Arguments {
    // Required method
    fn build_arguments(
        &self,
        builder: &Version,
        profile: Option<&UserProfile>,
        arg_overrides: &HashMap<String, String>,
        arg_removals: &HashSet<String>,
        jvm_overrides: &HashMap<String, String>,
        jvm_removals: &HashSet<String>,
        raw_args: &[String],
    ) -> Vec<String>;
}
Expand description

Builds the final argv (JVM args + main class + game args + raw args) from a resolved Version plus runtime overrides and removals.

Implemented blanket-style for every VersionInfo; user code rarely invokes Self::build_arguments directly — LaunchBuilder::run does it internally.

Required Methods§

Source

fn build_arguments( &self, builder: &Version, profile: Option<&UserProfile>, arg_overrides: &HashMap<String, String>, arg_removals: &HashSet<String>, jvm_overrides: &HashMap<String, String>, jvm_removals: &HashSet<String>, raw_args: &[String], ) -> Vec<String>

Constructs the launch argv for builder using the supplied overrides and removals.

Pass the authenticated profile so auth-derived placeholders (${auth_player_name}, ${auth_uuid}, ${auth_access_token}, ${auth_xuid}, ${user_type}) are populated from real session data. None keeps the legacy hardcoded defaults ("0", "legacy", …) — useful for dry-run argv inspection or tests.

Implementors§