An interface for the Vanilla Launcher.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
afterExtractNativeLibraries(
String versionId, String nativesPath) → Future< void> - Hook called after extracting native libraries
-
afterStartProcess(
String versionId, MinecraftProcessInfo processInfo, MinecraftAuth? auth) → Future< void> - Hook called after starting the Minecraft process
-
beforeExtractNativeLibraries(
String versionId) → Future< void> - Hook called before extracting native libraries
-
beforeStartProcess(
String javaExe, List< String> javaArgs, String workingDirectory, Map<String, String> environment, String versionId, MinecraftAuth? auth) → Future<void> - Hook called before starting the Minecraft process
-
downloadAssets<
T extends VersionInfo> (T versionInfo) → Future< void> - Download assets from https://resources.download.minecraft.net.
-
downloadLibraries(
) → Future< void> - Download libraries from https://libraries.minecraft.net.
-
extractNativeLibraries(
) → Future< String> - Extract native libraries.
-
getAccountProfile(
) → MinecraftAccountProfile? - Get minecraft account profile.
-
getActiveProfile(
) → Profile - Get an active profile.
-
getAssetIndex(
String versionId) → Future< String> - Get asset index for a given version ID.
-
getGameDir(
) → String - Get game directory.
-
getJavaArgumentsBuilder(
) → JavaArgumentsBuilder - A builder for Java arguments.
-
getJavaDir(
) → String - Get the Java executable file path.
-
getMicrosoftAccount(
) → MicrosoftAccount? - Get Microsoft account.
-
getProfiles(
) → LauncherProfiles - Get the launcher profiles.
-
getVersionInfo<
T extends VersionInfo> (String versionId) → Future< T?> - Retrieves basic version information for a Minecraft version.
-
launch(
{JavaStderrCallback? onStderr, JavaStdoutCallback? onStdout, JavaExitCallback? onExit}) → Future< void> - Launch the game.
-
loadProfiles(
) → Future< void> - Load launcher profiles from launcher_profiles.json
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setActiveProfile(
Profile profile) → void - Set the active profile.
-
setActiveProfileById(
String profileId) → void - Set the active profile by ID.
-
setGameDir(
String gameDir) → void - Set game directory.
-
setJavaDir(
String javaDir) → void - Set the Java executable file path.
-
terminate(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited